heyoka.model.Ap_avg#
- heyoka.model.Ap_avg(time_expr: expression = heyoka.time, sw_data: sw_data = sw_data()) expression #
Average of the geomagnetic Ap indices.
Added in version 7.3.0.
This function will return an expression representing the average of the 8 Ap indices as a function of the input time expression time_expr. time_expr is expected to represent the number of Julian centuries elapsed since the epoch of J2000 in the terrestrial time scale (TT). sw_data is the space weather dataset to be used for the computation.
This quantity is modelled as a piecewise constant function of time, where the switch points are given by the dates in sw_data. Evaluation outside the dates range of sw_data will produce a value of
NaN
.- Parameters:
time_expr – the input time expression.
sw_data – the SW data to be used for the computation.
- Returns:
an expression representing the average of the Ap indices.