add_tglr_stat¶
- muse_origin.add_tglr_stat(src_table, lines_table, correl, std)[source]¶
Add TGLR and STD detection statistics to the source and line table.
The following column is added to the line table:
nsigTGLR: the ratio of the line Tglr value with the standard deviation of the TGLR cube (for comp = 0 lines).
nsigSTD: the ratio of the line STD value with the standard deviation of the STD cube (for comp = 1 lines).
The following columns are added to the source table
nsigTGLR: the maximum of nstd_Tglr for all detected lines,
T_GLR the maximum of Tglr for all detected lines with comp=0
STD: the maximum of Std for all detected lines with comp=1
nsigSTD: the maximum of nstd_STD for all detected lines with comp=1,
purity: the maximum of purity for all detected lines
flux: the maximum of flux of all detected lines
- Parameters
- lines_table: astropy.table.Table
A table of lines from ORIGIN. The table must contain the columns: ID, flux, Tglr, purity.
- src_table: astropy.table.Table
A table of source from ORIGIN. The table must contain the columns: ID
- correl
array
cube of T_GLR values of maximum correlation
- std
array
cube of STD values