-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot specify options for pynio engine through backend_kwargs of open_dataset/open_dataarray #2380
Comments
I have the same issue but with the "format" parameter in Nio open_file. I don't know of a workaround for it. |
I have found a workaround, I think, in the last item of this issue. |
Thanks for the reply, but unfortunately I don't think the format can be set via options. It is a separate parameter entirely:
|
This would be pretty easy to fix if anyone wants to put together a pull request. I think you could just add |
* master: typo in whats_new (pydata#2763) Update computation.py to use Python 3 function signatures (pydata#2756) add h5netcdf+dask tests (pydata#2737) Fix name loss when masking (pydata#2749) fix datetime_to_numeric and Variable._to_numeric (pydata#2668) Fix mypy errors (pydata#2753) enable internal plotting with cftime datetime (pydata#2665) remove references to cyordereddict (pydata#2750) BUG: Pass kwargs to the FileManager for pynio engine (pydata#2380) (pydata#2732) reintroduce pynio/rasterio/iris to py36 test env (pydata#2738) Fix CRS being WKT instead of PROJ.4 (pydata#2715) Refactor (part of) dataset.py to use explicit indexes (pydata#2696)
Code Sample
Problem description
The problem is that there is not a way through xarray to set the PyNio specific options, and I have confirmed by taking a look at the initializer signature of
NioDataStore
Which does not provide a way to specify that value of the
options
parameter of theNio.open_file
method it usesThe only workaround is modify the global defaults for
Nio
prior to opening, i.e.,Expected Output
Either way from the sample results in
TypeError: __init__() got an unexpected keyword argument
Output of
xr.show_versions()
xarray: 0.10.8
pandas: 0.23.4
numpy: 1.15.0
scipy: 1.1.0
netCDF4: 1.4.1
h5netcdf: 0.6.2
h5py: 2.8.0
Nio: 1.5.2
zarr: None
bottleneck: 1.2.1
cyordereddict: None
dask: 0.18.2
distributed: 1.22.1
matplotlib: 2.2.3
cartopy: 0.16.0
seaborn: 0.9.0
setuptools: 40.0.0
pip: 18.0
conda: 4.5.11
pytest: 3.7.2
IPython: 6.5.0
sphinx: 1.7.5
The text was updated successfully, but these errors were encountered: