common/
ifsf_sepfitpars.pro
top ifsf_sepfitpars
IFSFIT
result = ifsf_sepfitpars(linelist, param [, perror], parinfo [, waveran=dblarr(2)])
Convert output of MPFIT, with best-fit line parameters in a single array, into a structure with separate arrays for different line parameters. Compute total line fluxes from the best-fit line parameters.
Return value
A structure with separate hashes for different line parameters. The hashes are indexed by line, and each value is an array over components. Tags: flux, fluxerr, fluxpk, fluxpkerr, nolines, wave, and sigma.
Parameters
- linelist in required type=hash(lines)
List of emission line rest-frame wavelengths.
- param in required type=dblarr(N)
Best-fit parameter array output by MPFIT.
- perror in optional type=dblarr(N)
Errors in best fit parameters, output by MPFIT.
- parinfo in required type=structure
Structure input into MPFIT. Each tag has N values, one per parameter. Used to sort param and perror arrays.
Keywords
- waveran in optional type=dblarr(2)
Set to upper and lower limits to return line parameters only for lines within the given wavelength range. Lines outside this range have fluxes set to 0.
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:
ChangeHistory:
2009may26, DSNR, created 2009jun07, DSNR, added error propagation and rewrote 2013nov01, DSNR, added documentation 2013nov25, DSNR, renamed, added copyright and license 2013jan13, DSNR, re-written to use hashes rather than arrays
File attributes
Modification date: | Mon Feb 17 09:46:52 2014 |
Lines: | 128 |
Docformat: | rst rst |