NDAClient#

class radiospectra.net.NDAClient[source]#

Bases: GenericClient

Client for Nançay Decameter Array (NDA) solar radio observations.

This client searches data in the NewRoutine format available here: https://cdn.obs-nancay.fr/repository/nda/newroutine/soleil/

Data source: https://cdn.obs-nancay.fr/repository/nda/newroutine/soleil/

Examples

>>> from radiospectra import net
>>> from sunpy.net import Fido, attrs as a
>>> query = Fido.search(
...     a.Time("2025-03-26", "2025-03-27"),
...     a.Instrument("NDA"))
>>> query
<sunpy.net.fido_factory.UnifiedResponse object at ...>
Results from 1 Provider:

1 Results from the NDAClient:
Source: https://cdn.obs-nancay.fr/repository/nda/newroutine/soleil/

    Start Time             End Time      Instrument  Physobs    Provider Source Version
----------------------- ------------------- ---------- ---------- --------- ------ -------
2025-03-26 07:56:00.000 2025-03-26 15:55:00        NDA radio_flux OBSNANCAY    NDA     1.1

Attributes Summary

info_url

This should return a string that is a URL to the data server or documentation on the data being served.

pattern

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

info_url#
pattern = 'https://cdn.obs-nancay.fr/repository/nda/newroutine/soleil/{{year:4d}}/{{month:2d}}/orn_nda_newroutine_sun_edr_{{year:4d}}{{month:2d}}{{day:2d}}{{hour:2d}}{{minute:2d}}_{{end_year:4d}}{{end_month:2d}}{{end_day:2d}}{{end_hour:2d}}{{end_minute:2d}}_v{{version}}.fits'#

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