diff options
Diffstat (limited to 'pkg/xtools/gtools/gtctran.x')
-rw-r--r-- | pkg/xtools/gtools/gtctran.x | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkg/xtools/gtools/gtctran.x b/pkg/xtools/gtools/gtctran.x new file mode 100644 index 00000000..1b62688f --- /dev/null +++ b/pkg/xtools/gtools/gtctran.x @@ -0,0 +1,34 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# GT_XCTRAN -- Transform x between two WCS. Return new value as a function. + +real procedure gt_xctran (gp, x1, wcs1, wcs2) + +pointer gp # GIO pointer +real x1 # X value to be transformed +int wcs1 # Input WCS +int wcs2 # Output WCS + +real x2, y2 + +begin + call gctran (gp, x1, 0., x2, y2, wcs1, wcs2) + return (x2) +end + + +# GT_YCTRAN -- Transform y between two WCS. Return new value as a function. + +real procedure gt_yctran (gp, y1, wcs1, wcs2) + +pointer gp # GIO pointer +real y1 # Y value to be transformed +int wcs1 # Input WCS +int wcs2 # Output WCS + +real x2, y2 + +begin + call gctran (gp, 0., y1, x2, y2, wcs1, wcs2) + return (y2) +end |