tobac.utils.general.add_coordinates#

tobac.utils.general.add_coordinates(features, variable_cube, use_standard_names=None)#

Add coordinates from the input cube of the feature detection to the trajectories/features.

Parameters:
  • features (pandas.DataFrame) – Trajectories/features from feature detection or linking step.

  • variable_cube (iris.cube.Cube) – Input data used for the tracking with coordinate information to transfer to the resulting DataFrame. Needs to contain the coordinate ‘time’.

  • use_standard_names (bool) – If true, when interpolating a coordinate, it looks for a standard_name and uses that to name the output coordinate, to mimic iris functionality. If false, uses the actual name of the coordinate to output.

Returns:

Trajectories with added coordinates.

Return type:

pandas.DataFrame