ctao_cr_spectra.spectral#

ctao_cr_spectra.spectral Module#

Functions and classes for calculating spectral weights.

Functions#

calculate_event_weights(true_energy, ...)

Calculate event weights.

Classes#

PowerLaw(normalization, index[, e_ref])

A power law with normalization, reference energy and index.

LogParabola(normalization, a, b[, e_ref])

A log parabola flux parameterization.

PowerLawWithExponentialGaussian(...)

A power law with an additional Gaussian bump.

TableInterpolationSpectrum(energy, flux[, ...])

Spectrum interpolating tabulated values.

Variables#

POINT_SOURCE_FLUX_UNIT

Unit of a point source flux

DIFFUSE_FLUX_UNIT

Unit of a diffuse flux