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 /noao/twodspec/apextract/apgscur.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/twodspec/apextract/apgscur.x')
-rw-r--r-- | noao/twodspec/apextract/apgscur.x | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noao/twodspec/apextract/apgscur.x b/noao/twodspec/apextract/apgscur.x new file mode 100644 index 00000000..5306ff9a --- /dev/null +++ b/noao/twodspec/apextract/apgscur.x @@ -0,0 +1,28 @@ +include "apertures.h" + +# AP_GSCUR -- Set the graphics cursor to the aperture given by the index. +# It computes the position of the cursor for the specified dispersion line. + +procedure ap_gscur (index, gp, line, aps, y) + +int index # Index of aperture +pointer gp # GIO pointer +int line # Dispersion line +pointer aps[ARB] # Apertures +real y # Y cursor coordinate + +int apaxis +real x +pointer ap + +real ap_cveval() + +begin + if (index < 1 || IS_INDEF (y)) + return + + ap = aps[index] + apaxis = AP_AXIS(ap) + x = AP_CEN(ap, apaxis) + ap_cveval (AP_CV(ap), real (line)) + call gscur (gp, x, y) +end |