huracanpy.calc.delta#
- huracanpy.calc.delta(var, track_ids=None, centering='forward')[source]#
Take the differences across var, without including differences between the end and start of different tracks
- Parameters:
var (xarray.DataArray) – The variable to calculate the delta from
track_ids (array_like, optional) – Track ID for each point
centering (str, optional) –
“forward” gives the delta based on the track point and the following track point. The last point of each track will be NaN
”backward” gives the delta based on the track point and the previous track point. The first point of each track will be NaN
”centre” gives the delta based on the centred difference of track points. The first and last points of each track will be NaN
”adaptive” gives the same as centred, but fills in the first point of each track with the forward difference, and the last point of each track with the backward difference
- Return type: