Class for manipulating set of 1D spectra: collect and unify data.
First we read raw data and fds. Than select spectral orders, shift, cut
and flat each of them, finally, write to resulting array.
|
|
| __init__(self,
spectra,
vscl=True,
cuts_dct=None,
dtype=<type 'list'>,
edglim=0,
verbose=False) |
source code
|
|
|
|
get_raw(self,
data_pth,
fds_pth,
pp_pth)
Read binary files containing data, wavelength scale (fds) and ccm
(file with flatten polynome points). |
source code
|
|
|
|
filler(self,
key,
lams,
dats)
Fill self.fdata depending of its dtype (dictionary or list). |
source code
|
|
|
|
take_orders(self,
data,
fds,
polypt,
opts,
lam=None,
ish=0,
cuts=None)
Take some orders from given spectrum depending of some conditions. |
source code
|
|
|
|
shcut_lams(self,
lams,
shift=0,
cuts=None)
Get fds, shift and cut them depending on given shift and limits. |
source code
|
|
|
|
runner(self,
lam=None,
divs=None,
ish=None)
Iterate over the spectra. |
source code
|
|
|
|
get_lims(self,
lam=None)
Return boundary wavelengths or velocities depending on self.vscl. |
source code
|
|
|
|
collect_chains(self,
lam,
width=4,
shift=0,
ish=0,
wcut=None)
Collect spectra chains containing given wavelength in a given
spectral window. |
source code
|
|
|
|
get_chains(self,
lam,
llim=None,
hlim=None,
divs=None,
ish=0,
wcut=None)
Collect spectra chains containing given wavelength in a given
velocity range. |
source code
|
|
|
|
get_atlas(self,
llam=None,
hlam=None,
divs=None,
ish=0)
Collect spectra chains in a given wavelength range. |
source code
|
|
|
Inherited from Spliner:
flat_order,
mk_spline,
splpl
|