RFSClient

class radiospectra.net.RFSClient[source]

Bases: sunpy.net.dataretriever.client.GenericClient

Provides access to Parker Solar Probe FIELDS Radio Frequency Spectrometer data archive at NASA Goddard Space Physics Data Facility (SPDF).

Examples

>>> import radiospectra.net
>>> from sunpy.net import Fido, attrs as a
>>> results = Fido.search(a.Time("2019/10/02", "2019/10/05"),
...                        a.Instrument('rfs'))  
>>> print(results) 
Results from 1 Provider:

8 Results from the RFSClient:
       Start Time               End Time        ... Provider   Wavelength [2]
                                                ...                 kHz
----------------------- ----------------------- ... -------- -----------------
2019-10-02 00:00:00.000 2019-10-02 23:59:59.999 ...     SPDF    10.0 .. 1700.0
2019-10-03 00:00:00.000 2019-10-03 23:59:59.999 ...     SPDF    10.0 .. 1700.0
2019-10-04 00:00:00.000 2019-10-04 23:59:59.999 ...     SPDF    10.0 .. 1700.0
2019-10-05 00:00:00.000 2019-10-05 23:59:59.999 ...     SPDF    10.0 .. 1700.0
2019-10-02 00:00:00.000 2019-10-02 23:59:59.999 ...     SPDF 1300.0 .. 19200.0
2019-10-03 00:00:00.000 2019-10-03 23:59:59.999 ...     SPDF 1300.0 .. 19200.0
2019-10-04 00:00:00.000 2019-10-04 23:59:59.999 ...     SPDF 1300.0 .. 19200.0
2019-10-05 00:00:00.000 2019-10-05 23:59:59.999 ...     SPDF 1300.0 .. 19200.0

Attributes Summary

baseurl

pattern

Methods Summary

post_search_hook(exdict, matchdict)

This method converts 'rfs_hfr' and 'rfs_lfr' in the url's metadata to the frequency ranges of for low and high frequency receivers.

register_values()

search(*args, **kwargs)

Query this client for a list of results.

Attributes Documentation

baseurl = 'https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/{Wavelength}/{year}/psp_fld_l2_(\\w){{7}}_(\\d){{8}}_v(\\d){{2}}.cdf'
pattern = '{}/{Wavelength}/{year:4d}/psp_fld_l2_{Wavelength}_{year:4d}{month:2d}{day:2d}_v{:2d}.cdf'

Methods Documentation

post_search_hook(exdict, matchdict)[source]

This method converts ‘rfs_hfr’ and ‘rfs_lfr’ in the url’s metadata to the frequency ranges of for low and high frequency receivers.

classmethod register_values()[source]
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.