XRSTimeSeries¶
- class sunpy.timeseries.sources.XRSTimeSeries(data, meta=None, units=None, **kwargs)[source]¶
Bases:
GenericTimeSeries
GOES XRS Time Series.
Each GOES satellite there are two X-ray Sensors (XRS) which provide solar X ray fluxes for the wavelength bands of 0.5 to 4 Å (short channel) sand 1 to 8 Å (long channel). Most recent data is usually available one or two days late.
Data is available starting on 1981/01/01.
Examples
>>> import sunpy.timeseries >>> import sunpy.data.sample >>> goes = sunpy.timeseries.TimeSeries(sunpy.data.sample.GOES_XRS_TIMESERIES) >>> goes.peek()
References
Notes
Attributes Summary
Retrieves the goes satellite number by parsing the meta dictionary.
Methods Summary
is_datasource_for
(**kwargs)Determines if header corresponds to a GOES lightcurve
TimeSeries
.peek
([title])Displays the GOES XRS light curve by calling
plot
.plot
([axes, columns])Plots the GOES XRS light curve.
Attributes Documentation
- h5netcdf_version = <Version('1.0.2')>¶
- observatory¶
Retrieves the goes satellite number by parsing the meta dictionary.
Methods Documentation
- classmethod is_datasource_for(**kwargs)[source]¶
Determines if header corresponds to a GOES lightcurve
TimeSeries
.
- peek(title='GOES X-ray flux', **kwargs)[source]¶
Displays the GOES XRS light curve by calling
plot
.(Source code, png, hires.png, pdf)
- plot(axes=None, columns=['xrsa', 'xrsb'], **kwargs)[source]¶
Plots the GOES XRS light curve.
- Parameters:
axes (
matplotlib.axes.Axes
, optional) – The axes on which to plot the TimeSeries. Defaults to current axes.columns (
list
of {‘xrsa’, ‘xrsb’}, optional) – The channels to display. Defaults to["xrsa", "xrsb"]
.**kwargs (
dict
) – Additional plot keyword arguments that are handed toplot
functions.
- Returns:
Axes
– The plot axes.