common/
ifsf_fitpoly.pro
top ifsf_fitpoly
IFSFIT
result = ifsf_fitpoly(lambda, flux, weight, template_flux, index, ct_coeff [, fitord=integer] [, quiet=byte] [, refit=structure])
Function to fit polynomial continuum to spectrum.
Return value
The best fit continuum spectrum (over all wavelengths, not just those fit).
Parameters
- lambda in required type=dblarr(N)
- flux in required type=dblarr(N)
- weight in required type=dblarr(N)
- template_flux in required type=any
Ignored. When stellar templates are fit, contatins templates.
- index in required type=intarr
Contains indices of continuum regions to fit
- ct_coeff out required type=integer default=0
When stellar templates are fit, contains best-fit coefficients.
Keywords
- fitord in optional type=integer
Specifies order of polynomial renormalization (default = 3).
- quiet in optional type=byte
- refit in optional type=structure
If set, contains structure with array of continuum regions to re-fit [tag RAN, type=dblarr(2, X), where X is the number of regions to refit] and array of polynomial orders to fit [tag ORD, type=intarr(X)].
Author information
- Author:
David S. N. Rupke:
Rhodes College Department of Physics 2000 N. Parkway Memphis, TN 38104 drupke@gmail.com
- Copyright:
Copyright (C) 2014 David S. N. Rupke
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
- History:
Change History:
2014jan29, DSNR, copied from IFSF_FITCONT
File attributes
Modification date: | Mon Feb 17 09:46:52 2014 |
Lines: | 96 |
Docformat: | rst rst |