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/_msfindspec3.cl | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/twodspec/multispec/_msfindspec3.cl')
-rw-r--r-- | noao/twodspec/multispec/_msfindspec3.cl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/noao/twodspec/multispec/_msfindspec3.cl b/noao/twodspec/multispec/_msfindspec3.cl new file mode 100644 index 00000000..d8150a90 --- /dev/null +++ b/noao/twodspec/multispec/_msfindspec3.cl @@ -0,0 +1,22 @@ +#{ _MSFINDSPEC3 -- Refine the model and fit a position function. + +#image,f,a,,,,Image +#width,r,a,10,,,Width of spectra +#naverage,i,a,20,1,,Number of lines to average +#verbose,b,a,no,,,Verbose output? + +{ + # Verbose message. + if (verbose) { + time + print (" Refit the spectra in ", image, ".") + } + + # Refit the model. + fitgauss5 (image, 1, lower=-width/2, upper=width/2, + lines="*", spectra="*", naverage=naverage, track=no, + algorithm=2) + + # Fit the default interpolation function to the positions. + fitfunction (image, parameter="x0", lines="*", spectra="*") +} |