x : (N) ndarray
fluxData : (N) ndarray
array of flux corresponding to the wavelengths given
in x. (needs to be the same size as x)
orderFits : list
list of the names of the species in the order that they
should be fit. Names should correspond to the names of the species
given in speciesDicts. (ex: [‘lya’,’OVI’])
speciesDicts : dictionary
Dictionary of dictionaries (I’m addicted to dictionaries, I
confess). Top level keys should be the names of all the species given
in orderFits. The entries should be dictionaries containing all
relevant parameters needed to create an absorption line of a given
species (f,Gamma,lambda0) as well as max and min values for parameters
to be fit
complexLim : float, optional
Maximum flux to start the edge of an absorption complex. Different
from fitLim because it decides extent of a complex rather than
whether or not a complex is accepted.
fitLim : float,optional
Maximum flux where the level of absorption will trigger
identification of the region as an absorption complex. Default = .98.
(ex: for a minSize=.98, a region where all the flux is between 1.0 and
.99 will not be separated out to be fit as an absorbing complex, but
a region that contains a point where the flux is .97 will be fit
as an absorbing complex.)
minLength : int, optional
number of cells required for a complex to be included.
default is 3 cells.
maxLength : int, optional
number of cells required for a complex to be split up. Default
is 1000 cells.
splitLim : float, optional
if attempting to split a region for being larger than maxlength
the point of the split must have a flux greater than splitLim
(ie: absorption greater than splitLim). Default= .99.
output_file : string, optional
location to save the results of the fit.
|