xarray-contrib / xwrf

A lightweight interface for working with the Weather Research and Forecasting (WRF) model output in Xarray.
https://xwrf.readthedocs.io/
Apache License 2.0
59 stars 16 forks source link

Exchange `xr.Dataset.dims` by `xr.Dataset.sizes` #159

Closed christopher-lw closed 7 months ago

christopher-lw commented 9 months ago

Change Summary

To eliminate FutureWarnings by the call of xr.Dataset.dims in xwrf it is replaced by xr.Dataset.sizes according to the warning:

FutureWarning: The return type of `Dataset.dims` will 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`.

Related issue number

No issue opened

Checklist

Please add any other relevant info below: