common/
ifsf_fitcont.pro
top ifsf_fitcont
IFSFIT
result = ifsf_fitcont(lambda, flux, weight, template_flux, index, ct_coeff [, ctinput=byte] [, dust=byte] [, fitord=integer] [, nobvls=byte] [, nopoly=byte] [, quiet=byte] [, refit=structure])
Function to fit continuum to spectrum. Options to fit are: 1) fit continuum w/ templates, w/ poly. renormalization of both continuum and data 2) fit continuum w/ templates, w/o poly renormalization (select /nopoly) 3) fit continuum w/ polynomial (select /nobvls) 4) create template-based continuum using ct_coeff and renormalize w/ poly. (select /nobvls and /ctinput) 5) create template-based continuum using ct_coeff and do not renormalize w/ poly. (select /nobvls, /ctinput, and /nopoly)
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=dblarr(N,M)
M is # of templates
- index in required type=intarr
Contains indices of continuum regions to fit
- ct_coeff out required type=dblarr(M)
Coefficients used to combine stellar templates. If /nobvls is set, then the input value is used to compute the continuum. If not, then the best fit coefficients are output to this variable. Set to 0 if /nobvls is set and /nopoly is not.
Keywords
- ctinput in optional type=byte
Use ct_coeff as an input to reproduce the specified template-based continuum.
- dust in optional type=byte
Turn on fitting dust extinction of stellar cont.
- fitord in optional type=integer
Specifies order of polynomial renormalization (default = 3).
- nobvls in optional type=byte
Turns off stellar template fitting.
- nopoly in optional type=byte
Turns off polynomial renormalization.
- 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) 2013 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:
2009aug14, DSNR, created 2009dec11, DSNR, fixed bug in call to ibackfit: invar->invvar 2010mar18, DSNR, added ct_coeff output 2013oct, DSNR, complete re-write of software 2013nov13, DSNR, renamed, added license and copyright
File attributes
Modification date: | Mon Feb 17 09:46:52 2014 |
Lines: | 154 |
Docformat: | rst rst |