ASWSClient#

class radiospectra.net.ASWSClient[source]#

Bases: GenericClient

Provides access to Learmonth Solar Observatory dynamic spectra (SRS format) hosted at the Australian Bureau of Meteorology Space Weather Services World Data Centre archive. The client is called “ASWS” for “Australian Space Weather Service”.

Learmonth is part of the RSTN network, so this client uses the same Instrument('RSTN') / Observatory('Learmonth') query convention as RSTNClient. The two clients differ by Provider: 'RSTN' for the NOAA NGDC mirror (pre-2019) and 'SWS' for the actively-updated SWS archive served here.

Examples

>>> from radiospectra import net
>>> from radiospectra.net.attrs import Observatory
>>> from sunpy.net import Fido, attrs as a
>>> query = Fido.search(a.Time('2024/05/11 00:00', '2024/05/11 23:59'),
...                     a.Instrument('RSTN'), Observatory('Learmonth'), a.Provider("ASWS"))
>>> query
<sunpy.net.fido_factory.UnifiedResponse object at ...>
Results from 1 Provider:

1 Results from the ASWSClient:

       Start Time               End Time        Provider Instrument Observatory
----------------------- ----------------------- -------- ---------- -----------
2024-05-11 00:00:00.000 2024-05-11 23:59:59.999     ASWS       RSTN   Learmonth

Attributes Summary

Methods Summary

post_search_hook(exdict, matchdict)

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

register_values()

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

Attributes Documentation

pattern = 'https://downloads.sws.bom.gov.au/wdc/wdc_spec/data/learmonth/raw/{{year:2d}}/LM{{year:2d}}{{month:2d}}{{day:2d}}.srs'#

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 – An Ordered Dictionary which is used by QueryResponse to show results.

Return type:

OrderedDict

classmethod register_values()[source]#

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

Returns:

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

Return type:

dict