RSTNClient#
- class radiospectra.net.RSTNClient[source]#
Bases:
GenericClient
Radio Spectrometer Telescope Network (RSTN) hosted at NOAA National Geophysical Data (NGDC) archive.
Examples
>>> from radiospectra import net >>> from sunpy.net import Fido, attrs as a >>> query = Fido.search(a.Time('2003/03/15 00:00', '2003/03/15 23:59'), ... a.Instrument('RSTN'), net.Observatory('San Vito')) >>> query <sunpy.net.fido_factory.UnifiedResponse object at ... Results from 1 Provider: 1 Results from the RSTNClient: Start Time End Time Provider Instrument Observatory ----------------------- ----------------------- -------- ---------- ----------- 2003-03-15 00:00:00.000 2003-03-15 23:59:59.999 RSTN RSTN San Vito
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.This enables the client to register what kind of Attrs it can use directly.
search
(*args, **kwargs)Query this client for a list of results.
Attributes Documentation
- baseurl = 'https://www.ngdc.noaa.gov/stp/space-weather/solar-data/solar-features/solar-radio/rstn-spectral/{obs}/%Y/%m/.*.gz'#
- observatory_map = {'Holloman': 'holloman', 'Learmonth': 'learmonth', 'Palehua': 'palehua', 'Sagamore Hill': 'sagamore', 'San Vito': 'san-vito', 'holloman': 'Holloman', 'learmonth': 'Learmonth', 'palehua': 'Palehua', 'sagamore': 'Sagamore Hill', 'san-vito': 'San Vito'}#
- pattern = '{}/rstn-spectral/{obs}/{year:4d}/{month:2d}/{obs_short:2l}{year2:2d}{month2:2d}{day:2d}.SRS.gz'#
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:
- Returns:
rowdict (
OrderedDict
) – An Ordered Dictionary which is used byQueryResponse
to show results.