GbmModelFit

class gdt.missions.fermi.gbm.scat.GbmModelFit[source]

Bases: ModelFit

A container for the info from a model fit, with values used in the GBM SCAT files.

Attributes Summary

covariance

The covariance matrix of the fit

dof

The degrees-of-freedom of the fit

duration_fluence

The energy fluence over the duration energy range, nominally 50-300 keV.

energy_fluence

The energy fluence

energy_fluence_50_300

The energy fluence over 50-300 keV

energy_flux

The energy flux

flux_energy_range

The energy range of the flux and fluence, (low, high)

name

The name of the model

parameters

A list of model parameters

photon_fluence

The photon fluence

photon_flux

The photon flux

photon_flux_50_300

The photon flux over 50-300 keV

stat_name

The name of the fit statistic

stat_value

The fit statistic value

time_range

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 GbmModelFit object

parameter_list()

Return the list of parameter names

to_fits_row()

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)

parameters

A list of model parameters

Type:

(list of Parameter)

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 flux

  • energy_flux (EnergyFlux, optional) – The energy flux

  • photon_fluence (PhotonFluence, optional) – The photon fluence

  • energy_fluence (EnergyFluence, optional) – The energy fluence

  • flux_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 GbmModelFit object

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:

(GbmModelFit)

parameter_list()

Return the list of parameter names

Returns:

(list) – The parameter names

to_fits_row()[source]

Return the contained data as a FITS table row

Returns:

(astropy.io.fits.BinTableHDU) – The FITS table