WAVESClient

class radiospectra.net.WAVESClient[source]

Bases: sunpy.net.dataretriever.client.GenericClient

Provides access to WIND WAVES radio data archive.

Examples

>>> import radiospectra.net
>>> from sunpy.net import Fido, attrs as a
>>> results = Fido.search(a.Time("2010/10/01", "2010/10/02"),
...                       a.Instrument('WAVES'))  
>>> results 
<sunpy.net.fido_factory.UnifiedResponse object at ...>
Results from 1 Provider:

4 Results from the WAVESClient:

       Start Time               End Time        ... Provider     Wavelength
                                                ...                 kHz
----------------------- ----------------------- ... -------- -----------------
2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA    20.0 .. 1040.0
2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA    20.0 .. 1040.0
2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA 1075.0 .. 13825.0
2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA 1075.0 .. 13825.0

Attributes Summary

baseurl

pattern

Methods Summary

post_search_hook(exdict, matchdict)

This method converts 'rad1' and 'rad1' in the url's metadata to the frequency ranges of for.

register_values()

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://solar-radio.gsfc.nasa.gov/data/wind/{Wavelength}/{year}/{Wavelength}/(\\d){{8}}.{ext}'
pattern = '{}/{Wavelength}/{year:4d}/{Wavelength}/{year:4d}{month:2d}{day:2d}.{ext}'

Methods Documentation

post_search_hook(exdict, matchdict)[source]

This method converts ‘rad1’ and ‘rad1’ in the url’s metadata to the frequency ranges of for.

low and high frequency receivers and removes the ext.

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

search(*args, **kwargs)[source]

Query this client for a list of results.

Parameters
  • *args (tuple) – sunpy.net.attrs objects representing the query.

  • **kwargs (dict) – Any extra keywords to refine the search.

Returns

A QueryResponse instance containing the query result.