GBMClient

class sunpy.net.dataretriever.GBMClient[source] [edit on github]

Bases: sunpy.net.dataretriever.GenericClient

Provides access to data from the Gamma-Ray Burst Monitor (GBM) instrument aboard the Fermi satellite. Although GBMs primary objective is to detect gamma-ray bursts, it provides high quality high energy solar flare observations.

The instrument consists of 12 Sodium Iodide (NaI) scintillation detectors, which are sensitive to an energy range of 4keV to 1MeV. At any one time, 6 of the NaI detectors are Sunward facing. The detectors are numbered ‘n1’ to ‘n11’. This client supports the user to choose which detector to use through the a.Detector attribute. The default detector is ‘n5’.

The GBM data comes in daily version files in two formats:

  • CSPEC - counts accumulated every 4.096 seconds in 128 energy channels for each detector.

  • CTIME - counts accumulated every 0.256 seconds in 8 energy channels

Both of which can be accessed through the attrs a.Resolution. The default data type is CSPEC unless the user defines.

Examples

>>> from sunpy.net import Fido, attrs as a
>>> res = Fido.search(a.Time('2015-06-21 00:00', '2015-06-23 23:59'),
...                   a.Instrument('gbm'), a.Detector('n3'),
...                   a.Resolution('ctime')) #doctest: +REMOTE_DATA
>>> print(res) #doctest: +REMOTE_DATA
Results from 1 Provider:
<BLANKLINE>
3 Results from the GBMClient:
     Start Time           End Time      Source Instrument Wavelength
       str19               str19         str5     str3       str3
------------------- ------------------- ------ ---------- ----------
2015-06-21 00:00:00 2015-06-23 23:59:00  FERMI        GBM        nan
2015-06-21 00:00:00 2015-06-23 23:59:00  FERMI        GBM        nan
2015-06-21 00:00:00 2015-06-23 23:59:00  FERMI        GBM        nan
<BLANKLINE>
<BLANKLINE>
<BLANKLINE>