NoRHClient

class sunpy.net.dataretriever.NoRHClient[source]

Bases: sunpy.net.dataretriever.client.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:
       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

A regex string that can match all urls supported by the client.

pattern

A string which is used to extract the desired metadata from urls correctly, using sunpy.extern.parse.parse.

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'

A regex string that can match all urls supported by the client.

pattern = '{}/tcx/{year:4d}/{month:2d}/{Wavelength:3l}{:4d}{day:2d}'

A string which is used to extract the desired metadata from urls correctly, using sunpy.extern.parse.parse.

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