GONGClient

class sunpy.net.dataretriever.GONGClient[source]

Bases: sunpy.net.dataretriever.client.GenericClient

Provides access to the Magnetogram products of NSO-GONG synoptic Maps.

Searches data hosted by the National Solar Observatory

Examples

>>> from sunpy.net import Fido, attrs as a
>>> results = Fido.search(a.Time("2019/12/31 22:00", "2020/1/1 02:00"),
...                       a.Instrument('GONG'))  
>>> results  
<sunpy.net.fido_factory.UnifiedResponse object at ...>
Results from 1 Provider:

5 Results from the GONGClient:
       Start Time               End Time        ... Provider ExtentType
----------------------- ----------------------- ... -------- ----------
2019-12-31 22:14:00.000 2019-12-31 22:14:59.999 ...      NSO   SYNOPTIC
2019-12-31 23:04:00.000 2019-12-31 23:04:59.999 ...      NSO   SYNOPTIC
2019-12-31 23:54:00.000 2019-12-31 23:54:59.999 ...      NSO   SYNOPTIC
2020-01-01 00:14:00.000 2020-01-01 00:14:59.999 ...      NSO   SYNOPTIC
2020-01-01 01:14:00.000 2020-01-01 01:14:59.999 ...      NSO   SYNOPTIC

Attributes Summary

baseurl

A regex string that can match all urls supported by the client.

pattern

A string which is used to extract the desired metadata from urls correctly, using sunpy.extern.parse.parse.

Methods Summary

register_values()

This enables the client to register what kind of Attrs it can use directly.

Attributes Documentation

baseurl = 'https://gong2.nso.edu/oQR/zqs/%Y%m/mrzqs%y%m%d/mrzqs%y%m%dt%H%Mc(\\d){4}_(\\d){3}\\.fits.gz'

A regex string that can match all urls supported by the client.

pattern = '{}/zqs/{year:4d}{month:2d}/mrzqs{:4d}{day:2d}/mrzqs{:6d}t{hour:2d}{minute:2d}c{}'

A string which is used to extract the desired metadata from urls correctly, using sunpy.extern.parse.parse.

Methods Documentation

classmethod register_values()[source]

This enables the client to register what kind of Attrs it can use directly.

Returns

dict – A dictionary with key values of Attrs and the values are a tuple of (“Attr Type”, “Name”, “Description”).