Diagnostics#
Huracanpy module for tracks diagnostics
Module containing functions to compute lifecycle stage
- huracanpy.diags.lifecycle.time_from_genesis(data)[source]#
Output the time since genesis for each TC point
- Parameters:
data (TYPE) – DESCRIPTION.
- Returns:
The time_from_genesis series. You can append it to your tracks by running tracks[“time_from_genesis”] = time_from_genesis(tracks)
- Return type:
- huracanpy.diags.lifecycle.time_from_extremum(data, varname, stat=<built-in function max>)[source]#
- Parameters:
data
varname
stat
Module containing function to compute track densities
- huracanpy.diags.track_density.simple_global_histogram(lon, lat, bin_size=5, N_seasons=1)[source]#
Function to compute the track density, based on a simple 2D histogram.
- Parameters:
lon (xarray.DataArray) – longitude series
lat (xarray.DataArray) – latitude series
bin_size (int or float, optional) – The size in degree of the bins. The default is 5.
N_seasons (int, optional) – Number of season (will be used to divide the final results, so that is represents points/year). The default is 1.
- Returns:
Histogram representing number of point per bin per season.
- Return type:
Module containing functions to compute track statistics
- huracanpy.diags.track_stats.duration(tracks)[source]#
Compute the duration of each track
- Parameters:
tracks (xarray.Dataset)
- Returns:
Duration of each track
- Return type:
- huracanpy.diags.track_stats.gen_vals(tracks)[source]#
Shows the attributes for the genesis point of each track
- Parameters:
tracks (xarray.DataSet)
- Returns:
Dataset containing only genesis points, with track_id as index.
- Return type:
- huracanpy.diags.track_stats.extremum_vals(tracks, varname, stat='max')[source]#
Shows the attribute for the extremum point of each track
- Parameters:
- Raises:
NotImplementedError – If another value than “min” and “max” is given to stat
- Returns:
Dataset containing only extremum points, with track_id as index.
- Return type:
Module containing functions to compute translation speed
- huracanpy.diags.translation_speed.translation_speed(data)[source]#
Compute translation speed along tracks
- Parameters:
data (xarray.Dataset)
- Returns:
Translation speeds. Output is stored for points that correspond to the middle of two consecutive points in the initial dataset.
- Return type: