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 --- sys/imio/tf/imupkl.x | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sys/imio/tf/imupkl.x (limited to 'sys/imio/tf/imupkl.x') diff --git a/sys/imio/tf/imupkl.x b/sys/imio/tf/imupkl.x new file mode 100644 index 00000000..1b144e29 --- /dev/null +++ b/sys/imio/tf/imupkl.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 imupkl (a, b, npix, dtype) + +long b[npix] +int a[npix], npix, dtype + +pointer bp + +begin + switch (dtype) { + case TY_USHORT: + call achtul (a, b, npix) + case TY_SHORT: + call achtsl (a, b, npix) + case TY_INT: + call achtil (a, b, npix) + case TY_LONG: + call achtll (a, b, npix) + case TY_REAL: + call achtrl (a, b, npix) + case TY_DOUBLE: + call achtdl (a, b, npix) + case TY_COMPLEX: + call achtxl (a, b, npix) + default: + call error (1, "Unknown datatype in imagefile") + } +end + + -- cgit