EOVSAClient#

class radiospectra.net.EOVSAClient[source]#

Bases: GenericClient

Provides access to Extended Owens Valley Solar Array (EOVSA) data.

Examples

>>> from radiospectra import net
>>> from sunpy.net import Fido, attrs as a
>>> query = Fido.search(a.Time('2020/10/05 00:00', '2020/10/06 00:00'),
...                     a.Instrument('EOVSA'), net.PolType.cross)  
>>> query  
<sunpy.net.fido_factory.UnifiedResponse object at ...>
Results from 1 Provider:

2 Results from the EOVSAClient:
       Start Time               End Time        Provider Instrument PolType
----------------------- ----------------------- -------- ---------- -------
2020-10-05 00:00:00.000 2020-10-05 23:59:59.999    EOVSA      EOVSA   Cross
2020-10-06 00:00:00.000 2020-10-06 23:59:59.999    EOVSA      EOVSA   Cross

Attributes Summary

baseurl

pattern

pol_map

Methods Summary

post_search_hook(exdict, matchdict)

Helper function used after search() which makes the extracted metadata representable in a query response table.

pre_search_hook(*args, **kwargs)

Helper function to return the baseurl, pattern and matchdict for the client required by search() before using the scraper.

register_values()

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

Attributes Documentation

baseurl = 'http://ovsa.njit.edu/fits/synoptic/%Y/%m/%d/EOVSA_.*_%Y%m%d.fts'#
pattern = '{}/synoptic/{year:4d}/{month:2d}/{day:2d}/EOVSA_{PolType:5l}_{year:4d}{month:2d}{day:2d}.fts'#
pol_map = {'Cross': 'XPall', 'TPall': 'Total', 'Total': 'TPall', 'XPall': 'Cross'}#

Methods Documentation

post_search_hook(exdict, matchdict)[source]#

Helper function used after search() which makes the extracted metadata representable in a query response table.

Parameters:
  • exdict (dict) – Represents metadata extracted from files.

  • matchdict (dict) – Contains attr values accessed from register_values() and the search query itself.

Returns:

rowdict (OrderedDict) – An Ordered Dictionary which is used by QueryResponse to show results.

classmethod pre_search_hook(*args, **kwargs)[source]#

Helper function to return the baseurl, pattern and matchdict for the client required by search() before using the scraper.

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”).