diff options
Diffstat (limited to 'sys/imio/tf/imupkx.x')
-rw-r--r-- | sys/imio/tf/imupkx.x | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/imio/tf/imupkx.x b/sys/imio/tf/imupkx.x new file mode 100644 index 00000000..916bb73b --- /dev/null +++ b/sys/imio/tf/imupkx.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 imupkx (a, b, npix, dtype) + +complex b[npix] +int a[npix], npix, dtype + +pointer bp + +begin + switch (dtype) { + case TY_USHORT: + call achtux (a, b, npix) + case TY_SHORT: + call achtsx (a, b, npix) + case TY_INT: + call achtix (a, b, npix) + case TY_LONG: + call achtlx (a, b, npix) + case TY_REAL: + call achtrx (a, b, npix) + case TY_DOUBLE: + call achtdx (a, b, npix) + case TY_COMPLEX: + call achtxx (a, b, npix) + default: + call error (1, "Unknown datatype in imagefile") + } +end + + |