argopy.ArgoFloat.open_dataset

argopy.ArgoFloat.open_dataset#

ArgoFloat.open_dataset(name: str = 'prof', cast: bool = True, **kwargs) Dataset#

Open and decode a dataset

Parameters:
  • name (str, optional, default = "prof") – Name of the dataset to open. It can be any key from the dictionary returned by ArgoFloat.ls_dataset.

  • cast (bool, optional, default = True) – Determine if the dataset variables should be cast or not. This is similar to opening the dataset directly with xr.open_dataset using the engine=`argo` option. This will be ignored if the ``netCDF4` kwarg is set to True.

  • **kwargs – All the other parameters are passed to the GDAC store open_dataset method.

Return type:

xarray.Dataset

Notes

Use the netCDF4=True option to return a netCDF4.Dataset object instead of a xarray.Dataset.