The below code gives a FutureWarning with xarray 2023.12.0:
import xugrid as xu
import dfm_tools as dfmt
file_nc = dfmt.data.fm_curvedbend_map(return_filepath=True)
uds = xu.open_dataset(file_nc)
"[...]\site-packages\xarray\core\utils.py:494: FutureWarning: The return type ofDataset.dimswill be changed to return a set of dimension names in future, in order to be more consistent withDataArray.dims. To access a mapping from dimension names to lengths, please useDataset.sizes."
The used netcdf file is also available on opendap.
Also happens in:
C:\DATA\xugrid\xugrid\ugrid\partitioning.py:384: FutureWarning: The return type ofDataset.dimswill be changed to return a set of dimension names in future, in order to be more consistent withDataArray.dims. To access a mapping from dimension names to lengths, please useDataset.sizes. chunks[dim] = (merged.dims[dim],)
The below code gives a FutureWarning with xarray 2023.12.0:
"[...]\site-packages\xarray\core\utils.py:494: FutureWarning: The return type of
Dataset.dimswill be changed to return a set of dimension names in future, in order to be more consistent with
DataArray.dims. To access a mapping from dimension names to lengths, please use
Dataset.sizes."
The used netcdf file is also available on opendap.
Also happens in:
C:\DATA\xugrid\xugrid\ugrid\partitioning.py:384: FutureWarning: The return type of
Dataset.dimswill be changed to return a set of dimension names in future, in order to be more consistent with
DataArray.dims. To access a mapping from dimension names to lengths, please use
Dataset.sizes. chunks[dim] = (merged.dims[dim],)