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_indexin thedstrajectories.The Argo index must have at least the
longitudeandlatitudevariables. It’s assumed to be the deployment plan.Real WMO numbers are identified as the closest floats from
argo_indexto 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: