From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- noao/twodspec/multispec/setranges.x | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 noao/twodspec/multispec/setranges.x (limited to 'noao/twodspec/multispec/setranges.x') diff --git a/noao/twodspec/multispec/setranges.x b/noao/twodspec/multispec/setranges.x new file mode 100644 index 00000000..46247a08 --- /dev/null +++ b/noao/twodspec/multispec/setranges.x @@ -0,0 +1,23 @@ +include "ms.h" + +# SET_RANGES -- Set profile starting range array. +# +# The ranges array relates the starting point of the profiles relative +# to the center of profile and relative to the image line. For more +# details see the MULTISPEC system documentation. + +procedure set_ranges (ms, lower, ranges, nspectra) + +pointer ms # MULTISPEC data structure +real lower # Relative lower limit of profiles +real ranges[nspectra, LEN_RANGES] # Ranges array to be set +int nspectra # Number of spectra + +int i + +begin + do i = 1, nspectra { + ranges[i, X_START] = int (PARAMETER(ms, X0, i)) + lower + ranges[i, DX_START] = ranges[i, X_START] - PARAMETER(ms, X0, i) + } +end -- cgit