Full catalog analysis#
- class pylick.analysis.Catalog(IDs, load_spectrum, index_keys, z=None, meas_method='int', bpr_thres=1.0, file_table=None, plot=False, plot_settings={}, verbose=False)#
Class optimized to handle the analysis of an entire catalog of galaxies.
>>> from pylick.analysis import Catalog >>> meas_table = Catalog(...) >>> print(meas_table)
- Parameters:
IDs (str) – galaxy unique identifier(s)
load_spectrum (funct) – takes one ID as argument and returns the corresponding spectral [wave, flux, err, mask].
index_keys (list) – keys of the indices to measure (see
pylick.indices.IndexLibrary).meas_method (str, optional) – method to measure the indices (“int”, “wei”, “exact”). Defaults to “int”.
z (list, optional) – if given, `wave`s are assumed to be in the obs. frame and shifted to rest-frame. Defaults to None.
bpr_thres (float, optional) – bad-to-total pixel ratio above which the measurement is not performed. Defaults to 1.
file_table (str, optional) – path to the file containing the indices definitions. Must be formatted as the default one located at data/file_table.dat.
plot (bool, optional) – produce plot file. Defaults to False.
plot_settings (dict, optional) – instruction for the plot code. Defaults to {}.
verbose (bool, optional) – prints warnings and execution time in the console. Defaults to False.
- property results#
Retrieve the results table.
- save(filename, filefmt='ascii.ecsv', prepend_colnames='', prepend_table=None)#
Save the results table.
- Parameters:
filename (str) – filename.
filefmt (str, optional) – format of the
astropy.Tableto save. Defaults to “ascii.ecsv”.prepend_colnames (str, optional) – string to which append index names to be used as catalog columns. Defaults to empty string.
prepend_table (
astropy.Table, optional) – catalog to which append the results. Defaults to None.