Subsetting Tracks#
- huracanpy.subset.trackswhere(tracks, condition)[source]#
Subset tracks from the input
e.g select all tracks that are solely in the Northern hemisphere >>> tracks_subset = huracanpy.subset.trackswhere(tracks, lambda x: (x.lat > 0).all())
- Parameters:
tracks (xarray.Dataset)
condition (function) – A function that takes an xarray.Dataset of an individual track and returns True or False
- Returns:
A dataset with the subset of tracks from the input that match the given criteria
- Return type: