aboutsummaryrefslogtreecommitdiff
path: root/sys/imio/tf/imupks.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/imio/tf/imupks.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/imio/tf/imupks.x')
-rw-r--r--sys/imio/tf/imupks.x34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/imio/tf/imupks.x b/sys/imio/tf/imupks.x
new file mode 100644
index 00000000..93d0ad3f
--- /dev/null
+++ b/sys/imio/tf/imupks.x
@@ -0,0 +1,34 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# IMUPK? -- Convert an array of pixels of datatype DTYPE into the datatype
+# specified by the IMUPK? suffix character.
+
+procedure imupks (a, b, npix, dtype)
+
+short b[npix]
+int a[npix], npix, dtype
+
+pointer bp
+
+begin
+ switch (dtype) {
+ case TY_USHORT:
+ call achtus (a, b, npix)
+ case TY_SHORT:
+ call achtss (a, b, npix)
+ case TY_INT:
+ call achtis (a, b, npix)
+ case TY_LONG:
+ call achtls (a, b, npix)
+ case TY_REAL:
+ call achtrs (a, b, npix)
+ case TY_DOUBLE:
+ call achtds (a, b, npix)
+ case TY_COMPLEX:
+ call achtxs (a, b, npix)
+ default:
+ call error (1, "Unknown datatype in imagefile")
+ }
+end
+
+