compute_power_law#
- sunkit_spex.legacy.photon_power_law.compute_power_law(
- energy_edges: Unit('keV'),
- norm_energy: Unit('keV'),
- norm_flux: Unit('ph / (keV s cm2)'),
- index: Unit(dimensionless),
Single power law, defined by setting the break energy to -inf and the lower index to nan.
- Parameters:
energy_edges (
astropy.units.Quantity) – 1D array of energy edges defining the energy bins.norm_energy (
astropy.units.Quantity) – Energy at which the normalization is applied, i.e. \(E_0\).norm_flux (
astropy.units.Quantity) – Normalization flux for the photon power law. Seeindex (
astropy.units.Quantity) – Power law index.
- Returns:
Photon power law, where the flux in each energy bin is equal to the power law analytically averaged over each bin.
- Return type: