diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/images/lib/geoset.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/images/lib/geoset.x')
-rw-r--r-- | pkg/images/lib/geoset.x | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/pkg/images/lib/geoset.x b/pkg/images/lib/geoset.x new file mode 100644 index 00000000..9591fa21 --- /dev/null +++ b/pkg/images/lib/geoset.x @@ -0,0 +1,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 |