Chi2Grid

class gdt.missions.fermi.gbm.localization.Chi2Grid[source]

Bases: object

Class for the GBM legacy internal Chi2Grid localization files/objects.

Attributes Summary

azimuth

The spacecraft azimuth grid points

chisq

The chi-squared value at each grid point

dec

The Dec grid points

numpts

Number of sky points in the Chi2Grid

quaternion

The spacecraft attitude quaternion

ra

The RA grid points

scpos

The spacecraft position in Earth inertial coordinates

significance

The significance value at each point

trigtime

The trigger time

zenith

The spacecraft zenith grid points

Methods Summary

from_data(az, zen, ra, dec, chisq)

Create a Chi2Grid object from arrays

open(filename)

Read a chi2grid file and create a Chi2Grid object

Attributes Documentation

azimuth

The spacecraft azimuth grid points

Type:

(np.array)

chisq

The chi-squared value at each grid point

Type:

(np.array)

dec

The Dec grid points

Type:

(np.array)

numpts

Number of sky points in the Chi2Grid

Type:

(int)

quaternion

The spacecraft attitude quaternion

Type:

(np.array)

ra

The RA grid points

Type:

(np.array)

scpos

The spacecraft position in Earth inertial coordinates

Type:

(np.array)

significance

The significance value at each point

Type:

(np.array)

trigtime

The trigger time

Type:

(float)

zenith

The spacecraft zenith grid points

Type:

(np.array)

Methods Documentation

classmethod from_data(az, zen, ra, dec, chisq)[source]

Create a Chi2Grid object from arrays

Parameters:
  • az (np.array) – The azimuth grid points

  • zen (np.array) – The zenith grid points

  • ra (np.array) – The RA grid points

  • dec (np.array) – The Dec grid points

  • chisq (np.array) – The chi-squared values at each grid point

Returns:

Chi2Grid – The Chi2Grid object

classmethod open(filename)[source]

Read a chi2grid file and create a Chi2Grid object

Parameters:

filename (str) – The filename of the chi2grid file

Returns:

Chi2Grid – The Chi2Grid object