LuminosityFunctionArchive#

class uvex_transients.utils.luminosity_function_archive.LuminosityFunctionArchive(path: str | Path | None = None)[source]#

Read-only access to the packaged archive of observed luminosity functions.

Parameters:

path (str or pathlib.Path, optional) – Path to the archive HDF5 file. Defaults to the packaged test_data/transients/luminosity_functions.h5.

Examples

>>> archive = LuminosityFunctionArchive()
>>> archive.types()
['supernovae/II', 'supernovae/Ia', 'supernovae/SESNe', 'supernovae/ccSNe']
>>> lf = archive.table(
...     "supernovae/Ia", "ASAS-SN"
... )
>>> lf["M"], lf["dNdM"]

Methods

sources(transient_type[, band])

Return the sources of the luminosity function of a transient type.

table(transient_type[, source, band])

Return one luminosity function as a ~astropy.table.QTable.

types([band])

Return the transient types that have a luminosity function in a band.