RealtimeStorm.interp

RealtimeStorm.interp(hours=1, dt_window=24, dt_align='middle', method='linear')

Interpolate a storm temporally to a specified time resolution.

Parameters
  • hours (int or float) – Temporal resolution in hours (or fraction of an hour) to interpolate storm data to. Default is 1 hour.

  • dt_window (int) – Time window in hours over which to calculate temporal change data. Default is 24 hours.

  • dt_align (str) – Whether to align the temporal change window as “start”, “middle” (default) or “end” of the dt_window time period.

  • method (str) – Interpolation method for lat/lon coordinates passed to scipy. Options are “linear” (default) or “quadratic”.

Returns

tropycal.tracks.Storm – New Storm object containing the updated dictionary.

Notes

When interpolating data using a non-linear method, all non-standard hour observations (i.e., not within 00, 06, 12 or 18 UTC) are ignored for latitude & longitude interpolation in order to produce a smoother line.