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 theds
trajectories.The Argo index must have at least the
longitude
andlatitude
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 fromds
.- Parameters:
ds (
xarray.Dataset
) – The simulation trajectories datasetargo_index (
pandas.DataFrame
) – The deployment plan profiles index
- Returns:
ds – The simulation trajectories dataset with a new variable
wmo
- Return type: