common/
ifsf.pro
top ifsf
IFSFIT
ifsf, initproc [, cols=intarr] [, rows=intarr] [, oned=byte] [, onefit=byte] [, verbose=byte], _extra=_extra
This procedure is the core routine to fit the continuum and emission lines of a spectrum.
As input, it requires a structure of initialization parameters. The tags for this structure can be found in INITTAGS.txt.
Parameters
- initproc in required type=string
Name of procedure to initialize the fit.
Keywords
- cols in optional type=intarr default=all
Columns to fit, in 1-offset format. Either a scalar or a two-element vector listing the first and last columns to fit.
- rows in optional type=intarr default=all
Rows to fit, in 1-offset format. Either a scalar or a two-element vector listing the first and last rows to fit.
- oned in optional type=byte
Data is assumed to be in a 2d array; choose this switch to input data as a 1d array.
- onefit in optional type=byte
Option to skip second fit; primarily for testing.
- verbose in optional type=byte
Print error and progress messages. Propagates to most/all subroutines.
- _extra
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-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:
ChangeHistory:
2009jul08, DSNR, copied from LRIS routine to GMOS 2010may27, DSNR, started re-write for new data 2013oct04, DSNR, started re-write for new data 2013nov25, DSNR, renamed, added copyright and license; changed required parameters from 'gal' and 'bin' to 'initproc', and optional parameter 'fibers' to 'oned', to make it more general 2013nov26, DSNR, added code to turn input hashes into arrays for each spaxel 2013dec10, DSNR, testing with PPXF and bug fixes 2013dec17, DSNR, inserted new IFSF_READCUBE function in place of code block to read data cube; started propagation of hashes through code and implementation of new calling sequence rubric for IFSF_FITSPEC 2013dec19, DSNR, more progress on propagating use of hashes through code, through first fit 2014jan13, DSNR, finished propagating use of hashes 2014jan16, DSNR, updated treatment of redshifts; bugfixes 2014jan17, DSNR, bugfixes; implemented SIGINIT_GAS, TWEAKCNTFIT keywords 2014jan29, DSNR, added _extra parameter to permit passing parameters to initialization routine; added some lines to deal properly with case of 1d data "cube"
File attributes
Modification date: | Mon Feb 17 09:46:52 2014 |
Lines: | 273 |
Docformat: | rst rst |