virtualargofleet.utilities.set_WMO#

set_WMO(ds: Dataset, argo_index: DataFrame)[source]#

Identify virtual floats with their real WMO

This function will try to identify WMO from argo_index in the ds trajectories.

The Argo index must have at least the longitude and latitude variables. It’s assumed to be the deployment plan.

Real WMO numbers are identified as the closest floats from argo_index to the initial positions of virtual floats from ds.

Parameters:
Returns:

ds – The simulation trajectories dataset with a new variable wmo

Return type:

xarray.Dataset