aboutsummaryrefslogtreecommitdiff
path: root/pkg/images/lib/geoset.x
blob: 9591fa218860b04889102861e653802db76595a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright(c) 1986 Assocation of Universities for Research in Astronomy Inc.

include "geomap.h"


# GEO_SETI -- Set integer parameters.

procedure geo_seti (fit, param, ival)

pointer	fit		#I pointer to the fit structure
int	param		#I paramter ID
int	ival		#I value

begin
	switch (param) {
	case GMPROJECTION:
	    GM_PROJECTION(fit) = ival
	case GMFIT:
	    GM_FIT(fit) = ival
	case GMFUNCTION:
	    GM_FUNCTION(fit) = ival
	case GMXXORDER:
	    GM_XXORDER(fit) = ival
	case GMXYORDER:
	    GM_XYORDER(fit) = ival
	case GMYXORDER:
	    GM_YXORDER(fit) = ival
	case GMYYORDER:
	    GM_YYORDER(fit) = ival
	case GMXXTERMS:
	    GM_XXTERMS(fit) = ival
	case GMYXTERMS:
	    GM_YXTERMS(fit) = ival
	case GMMAXITER:
	    GM_MAXITER(fit) = ival
	}
end


# GEO_SETD -- Set double parameters.

procedure geo_setd (fit, param, dval)

pointer	fit		#I pointer to the fit structure
int	param		#I paramter ID
double	dval		#I value

begin
	switch (param) {
	case GMXO:
	    GM_XO(fit) = dval
	case GMYO:
	    GM_YO(fit) = dval
	case GMXOREF:
	    GM_XOREF(fit) = dval
	case GMYOREF:
	    GM_YOREF(fit) = dval
	case GMREJECT:
	    GM_REJECT(fit) = dval
	}
end