NOAAIndicesTimeSeries

class sunpy.timeseries.sources.NOAAIndicesTimeSeries(data, meta=None, units=None, **kwargs)[source]

Bases: sunpy.timeseries.timeseriesbase.GenericTimeSeries

NOAA Solar Cycle monthly indices.

Solar activity is measured by a number of different values. The NOAA Solar Weather Prediction Center (SWPC) publishes the following indices. All of these indices are also provided as a 13-month running smoothed value.

  • The SWO sunspot number is issued by the NOAA Space Weather Prediction Center (SWPC)

  • The RI sunspot number is the official International Sunspot Number and is issued by the Solar Influence Data Analysis Center (SDIC) in Brussels, Belgium.

  • The ratio between the SWO and RI indices.

  • Radio flux at 10.7 cm is produced by Penticon/Ottawa and the units are in sfu.

  • The Ap Geomagnetic Index is produced by the United States Air Force (USAF).

Note

See the gallery example Plotting a solar cycle index for how to use Fido to retrieve the data file.

Examples

>>> import sunpy.timeseries
>>> noaa_url = "https://services.swpc.noaa.gov/json/solar-cycle/observed-solar-cycle-indices.json"
>>> noaa = sunpy.timeseries.TimeSeries(noaa_url, source='NOAAIndices')  
>>> noaa.peek()  

References

Methods Summary

is_datasource_for(**kwargs)

Determines if header corresponds to an NOAA indices timeseries.

peek([type])

Plots NOAA Indices as a function of time.

Methods Documentation

classmethod is_datasource_for(**kwargs)[source]

Determines if header corresponds to an NOAA indices timeseries.

peek(type='sunspot SWO', **kwargs)[source]

Plots NOAA Indices as a function of time. An example is shown below.

(Source code, png, hires.png, pdf)

../_images/sunpy-timeseries-sources-NOAAIndicesTimeSeries-1.png
Parameters
  • type ({'sunspot SWO', 'sunspot RI', 'sunspot compare', 'radio', 'geo'}, optional) – The type of plot required. Defaults to “sunspot SWO”.

  • **kwargs (dict) – Additional plot keyword arguments that are handed to plot functions.