Package pysls :: Module tem :: Class template
[frames] | no frames]

Class template

source code

Groups lines from which we create a template gaussian flux

Instance Methods
 
__init__(self, linelist=None, plotcolour="black", dashes=(5,5)) source code
 
copy(self)
Returns a copy of the object
source code
 
flux_gauss(self, l)
gives the flux at wavelength l, corresponding to the sum of all the lines
source code
 
setglobalz(self, z)
sets the same redshift for all the lines in the template
source code
 
getparam(self)
returns a list containing the height of each line in the template
source code
 
setparam(self, param)
it takes a list of heights which are set in the lines
source code
 
optimize(self, sp, fluxchoice, withmask=True)
optimize the template to fit with the spectra (the parameters are the heights of the lines)
source code