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 /noao/twodspec/multispec/setfitparams.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
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 |