LightcurveArchive#

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

Read-only access to the packaged literature light-curve archive.

Parameters:

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

Examples

>>> archive = LightcurveArchive()
>>> archive.types()
['kilonovae', 'lfbots', 'supernovae', 'tdes']
>>> lbol = archive.table(
...     "kilonovae", "gw170817_waxman", "L_bol"
... )
>>> lbol["time"], lbol["L_bol"]

Methods

events(transient_type)

Return the transients available under a transient type.

fields(transient_type, event)

Return the observable fields available for a transient.

table(transient_type, event, field)

Return the time/<field> light curve for one transient as a ~astropy.table.QTable.

types()

Return the transient types available in the archive.