argopy.fetchers.ArgoDataFetcher.to_dataset#
- ArgoDataFetcher.to_dataset(**kwargs) Dataset[source]#
Fetch and return data as
netCDF4.DatasetTrigger a fetch of data by the specified source and access point.
Notes
This method will fetch data with
to_xarray()and then convert the argopy post-processedxarray.DataSetinto anetCDF4.Dataset.If you want to open an Argo netcdf file directly as a
netCDF4.Dataset, you should rely on theargopy.ArgoFloat.open_datasetorargopy.gdacfs.open_datasetlower-level methods.- Returns:
Fetched data
- Return type:
netCDF4.Dataset