NoRHClient#

class sunpy.net.dataretriever.NoRHClient[source]#

Bases: GenericClient

Provides access to the Nobeyama RadioHeliograph (NoRH) averaged correlation time series data.

Uses this ftp archive hosted by the NoRH Science Center.

Queries to NoRH should specify either 17GHz or 34GHz as a Wavelength.

Examples

>>> import astropy.units as u
>>> from sunpy.net import Fido, attrs as a
>>> results = Fido.search(a.Time("2016/1/1", "2016/1/2"),
...                       a.Instrument.norh, a.Wavelength(17*u.GHz))  
>>> results  
<sunpy.net.fido_factory.UnifiedResponse object at ...>
Results from 1 Provider:

2 Results from the NoRHClient:
Source: https://solar.nro.nao.ac.jp/norh/doc/manuale/node1.html

       Start Time               End Time        ... Provider Wavelength
                                                ...             GHz
----------------------- ----------------------- ... -------- ----------
2016-01-01 00:00:00.000 2016-01-01 23:59:59.999 ...      NRO       17.0
2016-01-02 00:00:00.000 2016-01-02 23:59:59.999 ...      NRO       17.0

Attributes Summary

baseurl

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)

This method converts 'tca' and 'tcz' in the url's metadata to a frequency of '17 GHz' and '34 GHz' respectively.

pre_search_hook(*args, **kwargs)

Converts the wavelength specified in the query to its representation in the url which can be used by the scraper.

register_values()

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

Attributes Documentation

baseurl = 'ftp://solar-pub.nao.ac.jp/pub/nsro/norh/data/tcx/%Y/%m/(\\w){3}%y%m%d'#
info_url#
pattern = '{}/tcx/{year:4d}/{month:2d}/{Wavelength:3l}{:4d}{day:2d}'#

Methods Documentation

post_search_hook(exdict, matchdict)[source]#

This method converts ‘tca’ and ‘tcz’ in the url’s metadata to a frequency of ‘17 GHz’ and ‘34 GHz’ respectively.

classmethod pre_search_hook(*args, **kwargs)[source]#

Converts the wavelength specified in the query to its representation in the url which can be used by the scraper.

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