PhotonFlux¶
- class gdt.core.spectra.parameters.PhotonFlux(value, uncert, energy_range)[source]¶
Bases:
ParameterA photon flux class.
- Parameters:
value (float) – The central flux value
uncert (float or 2-tuple) – The 1-sigma uncertainty
energy_range (tuple) – A 2-tuple (low, high) for the energy range
Attributes Summary
The enery range (low, high)
The name of the parameter
The valid support of the parameter
The 1-sigma uncertainty
The units of the parameter
The central fit value
Methods Summary
Return the 1 sigma range of the parameter fit
Return as a tuple to be used for a FITS file
Check if the parameter value is within the allowed parameter range
Attributes Documentation
- energy_range¶
The enery range (low, high)
- Type:
(tuple)
- name¶
The name of the parameter
- Type:
(str)
- support¶
The valid support of the parameter
- Type:
(2-tuple)
- uncertainty¶
The 1-sigma uncertainty
- Type:
(float, float)
- units¶
The units of the parameter
- Type:
(str)
- value¶
The central fit value
- Type:
(float)
Methods Documentation
- one_sigma_range()¶
Return the 1 sigma range of the parameter fit
- Returns:
(tuple) – 2-tuple (low, high)
- to_fits_value()¶
Return as a tuple to be used for a FITS file
- Returns:
(tuple) – 3-value tuple (value, +uncertainty, -uncertainty)
- valid_value()¶
Check if the parameter value is within the allowed parameter range
- Returns:
(bool)