From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/imio/tf/imupkr.x | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sys/imio/tf/imupkr.x (limited to 'sys/imio/tf/imupkr.x') diff --git a/sys/imio/tf/imupkr.x b/sys/imio/tf/imupkr.x new file mode 100644 index 00000000..0cfccefc --- /dev/null +++ b/sys/imio/tf/imupkr.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 imupkr (a, b, npix, dtype) + +real b[npix] +int a[npix], npix, dtype + +pointer bp + +begin + switch (dtype) { + case TY_USHORT: + call achtur (a, b, npix) + case TY_SHORT: + call achtsr (a, b, npix) + case TY_INT: + call achtir (a, b, npix) + case TY_LONG: + call achtlr (a, b, npix) + case TY_REAL: + call achtrr (a, b, npix) + case TY_DOUBLE: + call achtdr (a, b, npix) + case TY_COMPLEX: + call achtxr (a, b, npix) + default: + call error (1, "Unknown datatype in imagefile") + } +end + + -- cgit