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/multispec/setfitparams.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/twodspec/multispec/setfitparams.x')
-rw-r--r-- | noao/twodspec/multispec/setfitparams.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/noao/twodspec/multispec/setfitparams.x b/noao/twodspec/multispec/setfitparams.x new file mode 100644 index 00000000..780572c3 --- /dev/null +++ b/noao/twodspec/multispec/setfitparams.x @@ -0,0 +1,27 @@ +include "ms.h" + +# SET_FITPARAMS -- Set the fitparams array from the spectra range array +# and the parameters array. + +procedure set_fitparams (spectra, parameters, nspectra, nparams, fitparams) + +int spectra[ARB] +int parameters[nparams] +int nspectra +int nparams +int fitparams[nspectra, nparams] + +int i, j + +bool is_in_range() + +begin + do i = 1, nspectra { + do j = 1, nparams { + if (is_in_range (spectra, i) && (parameters[j] == YES)) + fitparams[i, j] = YES + else + fitparams[i, j] = NO + } + } +end |