GbmModelFit¶
- class gdt.missions.fermi.gbm.scat.GbmModelFit[source]¶
Bases:
ModelFitA container for the info from a model fit, with values used in the GBM SCAT files.
Attributes Summary
The covariance matrix of the fit
The degrees-of-freedom of the fit
The energy fluence over the duration energy range, nominally 50-300 keV.
The energy fluence
The energy fluence over 50-300 keV
The energy flux
The energy range of the flux and fluence, (low, high)
The name of the model
A list of model parameters
The photon fluence
The photon flux
The photon flux over 50-300 keV
The name of the fit statistic
The fit statistic value
The time range of the model fit, (low, high)
Methods Summary
from_data(name, time_range, **kwargs)Create a ModelFit object from data.
from_fits_row(fits_row, model_name[, ...])Read a FITS row and return a
GbmModelFitobjectReturn the list of parameter names
Return the contained data as a FITS table row
Attributes Documentation
- covariance¶
The covariance matrix of the fit
- Type:
(np.array)
- dof¶
The degrees-of-freedom of the fit
- Type:
(int)
- duration_fluence¶
The energy fluence over the duration energy range, nominally 50-300 keV.
- Type:
(
EnergyFluence)
- energy_fluence¶
The energy fluence
- Type:
(
EnergyFluence)
- energy_fluence_50_300¶
The energy fluence over 50-300 keV
- Type:
(
EnergyFluence)
- energy_flux¶
The energy flux
- Type:
(
EnergyFlux)
- flux_energy_range¶
The energy range of the flux and fluence, (low, high)
- Type:
(tuple)
- name¶
The name of the model
- Type:
(str)
- photon_fluence¶
The photon fluence
- Type:
(
PhotonFluence)
- photon_flux¶
The photon flux
- Type:
(
PhotonFlux)
- photon_flux_50_300¶
The photon flux over 50-300 keV
- Type:
(
PhotonFlux)
- stat_name¶
The name of the fit statistic
- Type:
(str)
- stat_value¶
The fit statistic value
- Type:
(float)
- time_range¶
The time range of the model fit, (low, high)
- Type:
(float, float)
Methods Documentation
- classmethod from_data(name, time_range, **kwargs)¶
Create a ModelFit object from data.
- Parameters:
name (str) – The name of the model
time_range (float, float) – The time range of the model fit, (low, high)
parameters (list, optional) – A list of model parameters
photon_flux (
PhotonFlux, optional) – The photon fluxenergy_flux (
EnergyFlux, optional) – The energy fluxphoton_fluence (
PhotonFluence, optional) – The photon fluenceenergy_fluence (
EnergyFluence, optional) – The energy fluenceflux_energy_range (tuple, optional) – The energy range of the flux and fluence, (low, high)
stat_name (str, optional) – The name of the fit statistic
stat_value (float, optional) – The fit statistic value
dof (int, optional) – The degrees-of-freedom of the fit
covariance (np.array, optional) – The covariance matrix of the fit
- Returns:
(
ModelFit)
- classmethod from_fits_row(fits_row, model_name, param_names=None, flux_range=(10.0, 1000.0), dur_range=(50.0, 300.0))[source]¶
Read a FITS row and return a
GbmModelFitobject- Parameters:
fits_row (np.recarray) – The FITS row
model_name (str) – The model name
param_names (list, optional) – The list of parameter names
flux_range (tuple, optional) – The flux energy range (low, high)
dur_range (tuple, optional) – The duration energy range (low, high)
- Returns:
- parameter_list()¶
Return the list of parameter names
- Returns:
(list) – The parameter names