RealtimeStorm.sel

RealtimeStorm.sel(time=None, lat=None, lon=None, vmax=None, mslp=None, dvmax_dt=None, dmslp_dt=None, stormtype=None, method='exact')

Subset this storm by any of its parameters and return a new storm object.

Parameters
  • time (datetime.datetime or list/tuple of datetimes) – Datetime object for single point, or list/tuple of start time and end time. Default is None, which returns all points

  • lat (float/int or list/tuple of float/int) – Float/int for single point, or list/tuple of latitude bounds (S,N). None in either position of a tuple means it is boundless on that side.

  • lon (float/int or list/tuple of float/int) – Float/int for single point, or list/tuple of longitude bounds (W,E). If either lat or lon is a tuple, the other can be None for no bounds. If either is a tuple, the other canNOT be a float/int.

  • vmax (list/tuple of float/int) – list/tuple of vmax bounds (min,max). None in either position of a tuple means it is boundless on that side.

  • mslp (list/tuple of float/int) – list/tuple of mslp bounds (min,max). None in either position of a tuple means it is boundless on that side.

  • dvmax_dt (list/tuple of float/int) – list/tuple of vmax bounds (min,max). ONLY AVAILABLE AFTER INTERP. None in either position of a tuple means it is boundless on that side.

  • dmslp_dt (list/tuple of float/int) – list/tuple of mslp bounds (min,max). ONLY AVAILABLE AFTER INTERP. None in either position of a tuple means it is boundless on that side.

  • stormtype (list/tuple of str) – list/tuple of stormtypes (options: ‘LO’,’EX’,’TD’,’SD’,’TS’,’SS’,’HU’)

  • method (str) – Applies for single point selection in time and lat/lon. ‘exact’ requires a point to match exactly with the request. (default) ‘nearest’ returns the nearest point to the request ‘floor’ ONLY for time, returns the nearest point before the request ‘ceil’ ONLY for time, returns the neartest point after the request

Returns

storm object – A new storm object that satisfies the intersection of all subsetting.