diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/pmio/pmascii.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/pmio/pmascii.x')
-rw-r--r-- | sys/pmio/pmascii.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/pmio/pmascii.x b/sys/pmio/pmascii.x new file mode 100644 index 00000000..3e85d0af --- /dev/null +++ b/sys/pmio/pmascii.x @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <pmset.h> +include <plio.h> + +# PM_ASCIIDUMP -- Dump a two dimensional region of a mask as a printable ASCII +# character array on the output stream. Intended as a simple debugging tool; +# see also PM_SAVEIM. + +procedure pm_asciidump (pl, vs, ve, outfd) + +pointer pl #I mask descriptor +long vs[ARB] #I ll vector (only first two elements used) +long ve[ARB] #I ur vector (only first two elements used) +int outfd #I output file + +include "pmio.com" + +begin + if (PM_MAPXY(pl) == NO) + call pl_asciidump (pl, vs, ve, outfd) + else { + call imaplv (PM_REFIM(pl), vs, v1, PM_MAXDIM) + call imaplv (PM_REFIM(pl), ve, v2, PM_MAXDIM) + call pl_asciidump (pl, v1, v2, outfd) + } +end |