huracanpy.calc.rate#
- huracanpy.calc.rate(var, time, track_ids=None, centering='forward')[source]#
Compute rate of change of var, without including differences between the end and start of different tracks
- Parameters:
var (xarray.DataArray) – The variable used to calculate the rate
time (xarray.DataArray) – Time at each point
track_ids (array_like, optional) – Track ID at each point
centering (str, optional) –
“forward” gives the rate based on the track point and the following track point. The last point of each track will be NaN
”backward” gives the rate based on the track point and the previous track point. The first point of each track will be NaN
”centre” gives the rate 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: