issues: 353566871
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
353566871 | MDU6SXNzdWUzNTM1NjY4NzE= | 2380 | Cannot specify options for pynio engine through backend_kwargs of open_dataset/open_dataarray | 5385574 | closed | 0 | 4 | 2018-08-23T21:50:16Z | 2019-02-07T02:56:21Z | 2019-02-07T02:56:21Z | NONE | Code Sample```python frost_run = xr.open_dataarray("nam.grib2", engine="pynio", backend_kwargs={"SingleElementDimensions": "Initial_time"}) orimport Nio nio_options = Nio.options() nio_options.SingleElementDimensions = "Initial_time" frost_run = xr.open_dataarray("nam.grib2", engine="pynio", backend_kwargs={"options": nio_options}) ``` Problem descriptionThe 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 The only workaround is modify the global defaults for ```python import Nio Nio.option_defaults["SingleElementDimensions"] = "Initial_time" open datasets now``` Expected OutputEither way from the sample results in Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2380/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |