aboutsummaryrefslogtreecommitdiff
path: root/pkg/xtools/gtools/gtctran.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/xtools/gtools/gtctran.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/xtools/gtools/gtctran.x')
-rw-r--r--pkg/xtools/gtools/gtctran.x34
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