solarwindpy.solar_activity.base.IndicatorExtremaο
- class IndicatorExtrema(*args, **kwargs)[source]ο
Bases:
BaseBase class for objects describing indicator extrema.
- property dataο
- property cycle_intervalsο
pd.Intervalfor rising and falling edges and full cycle.
- property extrema_bandsο
Bands of time (\(\Delta t\)) about indicator extrema.
- Parameters:
dt (str or pandas.Timedelta) β Window half-width used in
calculate_extrema_bands().
- calculate_intervals()[source]ο
Compute rising, falling, and full-cycle time intervals.
Notes
The rising edge comes before the falling edge in time, i.e. itβs Min
Nfollowed by MaxN. Also calculate intervals for a full SSN cycle.
- cut_spec_by_interval(epoch, kind=None, tk_cycles=None)[source]ο
Assign epochs to solar-cycle intervals.
- Parameters:
epoch (pandas.Series or pandas.DatetimeIndex) β Data to cut.
kind (str, optional) β
If provided, restricts the cut to a subset of interval types.
Key
Description
None
Cut by all available options.
βCycleβ
Cut by solar cycle
βRiseβ
Cut by rising edge
βFallβ
Cut by falling edge
βEdgesβ
Cut by [βFallβ, βRiseβ]. Exclusive option.
Note that
"Edges"is exclusive and will specify["Fall", "Rise"]alone.tk_cycles (list or slice, optional) β If not
None, a selector used to choose target solar cycles.
- Returns:
Series of
pandas.Intervalobjects labeling each epoch.- Return type:
- calculate_extrema_bands(dt='365d')[source]ο
Return time windows around indicator extrema.
- Parameters:
- dtstr or pandas.Timedelta, optional
Half-width of the window around each extremum. Defaults to
"365d".
- Returns:
- pandas.DataFrame
MinandMaxintervals for each cycle.
- cut_about_extrema_bands(epoch, tk_cycles=None, kind=None)[source]ο
Bin epochs relative to extrema bands.
Computed with
calculate_extrema_bands().- Parameters:
epoch (pandas.DatetimeIndex) β Times to classify.
tk_cycles (slice, optional) β Subset of cycles to use when cutting.
kind ({{"Min", "Max"}}, optional) β Restrict the classification to minima or maxima.
- Returns:
A series of intervals and a mapped series of the form
"N-Min"or"N-Max".- Return type:
- property loggerο
logging.Loggerattached to the instance.