huracanpy.info.inferred_track_id#

huracanpy.info.inferred_track_id(*variables)[source]#

Create a track_id variable by combining multiple identifying variables

If, for example, we have a set of tracks with variables year and storm_number, but storm_number is reset to zero for each year, we can still uniquely identify each track using the combination of year and storm_number. This function does that identification and creates a track_id array, e.g.

>>> track_id = huracanpy.inferred_track_id(tracks.year,tracks.storm_number)
Parameters:

*variables – Pass a number of variables required to determine the unique track_id

Returns:

An array of integers ranging from 0 to the total number of tracks. Identifying the track of each record. The return type is the same type as the input or a numpy.ndarray if the input does not have a copy method

Return type:

array_like