How mickaelrigault/ztfidr works
ztfidr is a Python package for reading and parsing the ZTF SN IDR dataset. Its principal workflow loads release tables into a Sample, lets users filter and inspect the sample, and builds per-target views combining light curves and spectra. The package also provides host-property access, supernova typing, host-mass calculations, spectral-line fitting, SALT2 support, and plotting. The README and excerpts establish the main loading and target-view relationships; links to unsampled internals are omitted rather than inferred.
Main entry points: sample.py Sample and filters · lightcurve.py Light curves · spectroscopy.py Spectra · io.py Release data access
Components 15
Release data
- Release data access
ztfidr/io.py
Sample and targets
- Sample and filters
ztfidr/sample.py - Light curves
ztfidr/lightcurve.py - Spectra
ztfidr/spectroscopy.py - Target view
ztfidr/target.py
Scientific analysis
- Host properties
ztfidr/host.py - Host mass
ztfidr/hostmass.py - Milky Way corrections
ztfidr/mw.py - SALT2 parameters
ztfidr/salt2.py - Spectral line fitting
ztfidr/linefitter.py
Classification and views
- Supernova typing
ztfidr/typing.py - Scientific plots
ztfidr/plotting.py - Flux utilities
ztfidr/utils.py
Other components
- Researcher
- ZTF IDR files
Connections 16
- Researcher → Sample and filters: loads sample
README.md - Sample and filters → Release data access: loads tables
ztfidr/sample.py - Release data access → ZTF IDR files: reads release files
ztfidr/io.py - Researcher → Sample and filters: filters data
README.md - Sample and filters → Light curves: loads target curve
ztfidr/sample.py - Sample and filters → Spectra: loads target spectra
ztfidr/sample.py - Sample and filters → Target view: builds target
ztfidr/sample.py - Target view → Light curves: uses curve
ztfidr/target.py - Target view → Spectra: uses spectra
ztfidr/target.py - Light curves → Release data access: resolves file
ztfidr/lightcurve.py - Spectra → Release data access: resolves files
ztfidr/spectroscopy.py - Researcher → Scientific plots: plots results
README.md - Light curves → Flux utilities: converts flux
ztfidr/lightcurve.py - Scientific plots → Flux utilities: uses helpers
ztfidr/plotting.py - Sample and filters → Host mass: uses calculations
ztfidr/sample.py - Spectra → Spectral line fitting: fits lines
ztfidr/spectroscopy.py