ecmwf / earthkit-data

A format-agnostic Python interface for geospatial data
Apache License 2.0
47 stars 9 forks source link

Review netcdf to_xarray args #369

Closed sandorkertesz closed 2 months ago

sandorkertesz commented 2 months ago

With this PR for NetCDF we can use the xarray_open_mfdataset_kwargsoption to specify kwargs for xarray.open_mfdataset() when using the to_xarray() method.

 r = ds.to_xarray(xarray_open_mfdataset_kwargs=dict(decode_cf=False, decode_times=False))