From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- pkg/xtools/gtools/gtctran.x | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkg/xtools/gtools/gtctran.x (limited to 'pkg/xtools/gtools/gtctran.x') 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 -- cgit