compute_power_law#

sunkit_spex.photon_power_law.compute_power_law(energy_edges: Unit('keV'), norm_energy: Unit('keV'), norm_flux: Unit('ph / (keV s cm2)'), index: Unit(dimensionless))[source]#

Single power law, defined by setting the break energy to -inf and the lower index to nan.

Parameters:
Returns:

Photon power law, where the flux in each energy bin is equal to the power law analytically averaged over each bin.

Return type:

astropy.units.Quantity