Spectra¶
Resampling¶
nyx.spectra.resample Module¶
Functions¶
|
Bin edges of a wavelength grid: midpoints, half-extrapolated at the ends. |
|
Width of each bin of a wavelength grid: the per-nm quadrature weight. |
|
Resample flux from one wavelength grid to another. |
Spectral models¶
nyx.spectra.models Module¶
Classes¶
Parametric spectral model: |
|
Pass conditions through unchanged as the spectrum. |
|
Base class for spectral models: source conditions to spectra. |
|
Pre-computed spectrum array. |
Libraries and bandpasses¶
nyx.spectra.library Module¶
Functions¶
Load the Rieke (2008) solar spectrum from STScI CALSPEC. |
|
|
Black-body photon flux density, in |
|
A |
|
Create a synthetic colour grid with dust reddening. |
|
Load the HST/CALSPEC solar spectrum and resample it to wvls. |
|
Convert and resample arbitrary flux data to a target wavelength grid. |
Classes¶
A filter transmission curve. |
|
Spectra indexed by one or more parameters, wavelength on the last axis. |