SwiftSNeArchive#
- class uvex_transients.utils.swift_sne_archive.SwiftSNeArchive(path: str | Path | None = None)[source]#
Read-only access to the packaged Swift/UVOT supernova UV light-curve archive.
- Parameters:
path (
strorpathlib.Path, optional) – Path to the archive HDF5 file. Defaults to the packagedtest_data/transients/swift_sne_uv_lightcurves.h5.
Examples
>>> archive = SwiftSNeArchive() >>> archive.objects(sn_type="IIP") >>> lc = archive.lightcurve( ... "Gaia16apd", "UVW1" ... ) >>> plt.errorbar( ... lc["t"], lc["L"], lc["L_err"], fmt="o" ... )
Methods
bands(obj)Return the UVOT bands observed for one object.
lightcurve(obj, band)Return one band's detections as a ~astropy.table.QTable.
meta(obj[, band])Return the HDF5 attributes of one object, or of one of its bands if
bandis given.objects([sn_type])Return the supernovae in the archive.