Various aux functions. There should be more bla bla at places like
this ...
|
peak_detect(array,
n)
detects the n highest peaks in the array and returns their wavelength
and their height in a list of two lists |
source code
|
|
|
mean_spectra(spectralist)
calculates the average flux (with and without continum) of a spectra
listand returns a spectra |
source code
|
|
|
candidat_search(directory_in,
directory_out,
file,
tuplelist,
cand_id,
minpeaks,
minqual,
minborder,
maxborder,
noisetuples=[],
masktuples=[],
fluxchoice='fluxes_csc',
n=10,
ratiolimit=0.5)
from a fit file, it writes candidats files (if they satisfy the
selection criteria). |
source code
|
|
|
create_cand(spec,
temp,
z,
directory_out,
ratiolimit,
cand_id,
cand_number,
minpeaks,
minqual,
minborder,
maxborder)
This is more precisely the function that creats the candidats files,
it applies the criteria of selection |
source code
|
|
|
sigtonoise(spectra,
tem)
it returns a list containing the ratio between the signal and the
noise for the lines in the template |
source code
|
|
|
mainpeaksdet(peaks,
sp)
returns a list of the 'real' peaks in a signal, it checks that two
peaks very close to each other are not considered as two different
ones ; the minimum distance bewteen to peaks is arbitrary |
source code
|
|
|
sortlist(directory,
filelist)
returns a list of candidats sorted by quality |
source code
|
|
|
meanfilt(arr,
N)
filters a signal using a mean fliter ; N must be odd [not used] |
source code
|
|
|
select_lines(reftuples,
z,
minangst,
maxangst)
it is to check that the wavelengths contained in the tuples are in
the range of the spectrometer |
source code
|
|