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/iki/stf/stfmkpfn.x | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sys/imio/iki/stf/stfmkpfn.x (limited to 'sys/imio/iki/stf/stfmkpfn.x') diff --git a/sys/imio/iki/stf/stfmkpfn.x b/sys/imio/iki/stf/stfmkpfn.x new file mode 100644 index 00000000..4568efd8 --- /dev/null +++ b/sys/imio/iki/stf/stfmkpfn.x @@ -0,0 +1,28 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "stf.h" + +# STF_MKPIXFNAME -- Given the root and extn fields of the image header filename, +# construct the pixel file name. The pixel file has the same root name as +# the header and the first two characters of the extension are the same as for +# the header, if a header extension was given. + +procedure stf_mkpixfname (hdr_root, hdr_extn, pixfname, maxch) + +char hdr_root[ARB] # root name of header file +char hdr_extn[ARB] # extension of header file +char pixfname[maxch] # receives pixel filename +int maxch + +int i +char pix_extn[MAX_LENEXTN] + +begin + call strcpy (STF_DEFPIXEXTN, pix_extn, MAX_LENEXTN) + if (hdr_extn[1] != EOS) { + for (i=1; i < MAX_LENEXTN; i=i+1) + pix_extn[i] = hdr_extn[i] + } + + call iki_mkfname (hdr_root, pix_extn, pixfname, maxch) +end -- cgit