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 /sys/gio/gks/gswn.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/gks/gswn.x')
-rw-r--r-- | sys/gio/gks/gswn.x | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/gio/gks/gswn.x b/sys/gio/gks/gswn.x new file mode 100644 index 00000000..713ae487 --- /dev/null +++ b/sys/gio/gks/gswn.x @@ -0,0 +1,29 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gset.h> +include "gks.h" + +# GSWN -- Set window. Window of world coord system "wcs" is set, which +# is not necessarily the current WCS. + +procedure gswn (wcs, x1, x2, y1, y2) + +int wcs # Number of world coordinate system (transformation) +real x1, x2 # Range of world coordinates in x +real y1, y2 # Range of world coordinates in y + +int current_wcs, i +int gstati() +include "gks.com" + +begin + current_wcs = gstati (gp[gk_std], G_WCS) + call gsawi (G_WCS, wcs) + do i = 1, NDEV { + if (gk_status[i] == ACTIVE) + call gswind (gp[i], x1, x2, y1, y2) + } + + # Now return to current WCS before returning + call gsawi (G_WCS, current_wcs) +end |