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 index.
Added in version 7.3.0.
This function will return an expression representing the 24-hour running average of the Ap index centred on the input time 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 linear function of time, where the nodes 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 24-hour running average of the Ap index.