huracanpy.concat_tracks#
- huracanpy.concat_tracks(objs, track_id='track_id', *, prefix=None, start=0, keep_track_id=False, **kwargs)[source]#
Concatenate the tracks while making sure the track_id remains unique for each track
- Parameters:
objs (sequence of xarray.Dataset) – The tracks to concatenate
track_id (str, default="track_id") – The name of the track_id variable in the tracks to concatenate
prefix (str, optional) – A string to start each track_id to make them unique. Needs to be a python-formattable string e.g. “{}_” will result in track_id’s that look like {n}_{track_id}, where n is the count of the DataArray in objs and track_id is the original track_id.
start (int, optional) – The first entry for the new track IDs. If prefix is None, then the track_ids will have values from start to start + number_of_tracks
keep_track_id (bool or str, default=False) – Save the original track_id as a new variable in the output Dataset. If str this gives the variable name, “track_id_original” otherwise
**kwargs – Passed to
xarray.concat()