diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/images/tv/display/imdsetwcs.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'pkg/images/tv/display/imdsetwcs.x')
-rw-r--r-- | pkg/images/tv/display/imdsetwcs.x | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkg/images/tv/display/imdsetwcs.x b/pkg/images/tv/display/imdsetwcs.x new file mode 100644 index 00000000..98e8afdc --- /dev/null +++ b/pkg/images/tv/display/imdsetwcs.x @@ -0,0 +1,32 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <knet.h> +include <mach.h> +include "iis.h" + +# IMD_SETWCS -- Pass the WCS for the indicated reference frame to a display +# server. The frame buffer configuration is also passed. + +procedure imd_setwcs (chan, wcstext) + +int chan #I display channel code (frame) +char wcstext[ARB] #I wcs text + +pointer sp, pkwcs +int status, count +int strlen(), iisflu() +include "iis.com" + +begin + count = strlen (wcstext) + 1 + + call smark (sp) + call salloc (pkwcs, count, TY_CHAR) + call strpak (wcstext, Memc[pkwcs], count) + + call iishdr (IWRITE+PACKED, count, WCS, iis_version, 0, iisflu(chan), + max(0,iis_config-1)) + call iisio (Memc[pkwcs], count, status) + + call sfree (sp) +end |