diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/mwcs/mwc1tran.gx | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/mwcs/mwc1tran.gx')
-rw-r--r-- | sys/mwcs/mwc1tran.gx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/mwcs/mwc1tran.gx b/sys/mwcs/mwc1tran.gx new file mode 100644 index 00000000..b2cbbcfc --- /dev/null +++ b/sys/mwcs/mwc1tran.gx @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "../mwcs.h" + +# MW_C1TRAN -- Optimized 1D coordinate transformation. + +PIXEL procedure mw_c1tran$t (a_ct, x) + +pointer a_ct #I pointer to CTRAN descriptor +PIXEL x #I coordinates in input system + +PIXEL y +pointer ct + +begin + # Get real or double version of descriptor. + ct = CT_$T(a_ct) + + # Perform the transformation; LNR is a simple linear transformation. + if (CT_TYPE(ct) == LNR) { + return (Mem$t[CT_LTM(ct)] * x + Mem$t[CT_LTV(ct)]) + } else { + call mw_ctran$t (a_ct, x, y, 1) + return (y) + } +end |