issues: 1989356758
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1989356758 | I_kwDOAMm_X852kyzW | 8447 | Improve discoverability of backend engine options | 4160723 | open | 0 | 5 | 2023-11-12T11:14:56Z | 2023-12-12T20:30:28Z | MEMBER | Is your feature request related to a problem?Backend engine options are not easily discoverable and we need to know or figure out them before passing it as kwargs to Describe the solution you'd likeThe solution is similar to the one proposed in #8002 for setting a new index. The API could look like this: ```python import xarray as xr ds = xr.open_dataset( file_or_obj, engine=xr.backends.engine("myengine").with_options( option1=True, option2=100, ), ) ``` where We would need to extend the API for ```python class BackendEntrypoint: _open_dataset_options: dict[str, Any]
``` Such that ```python class MyEngineBackendEntryPoint(BackendEntrypoint): open_dataset_parameters = ("option1", "option2")
``` Pros:
Cons:
Describe alternatives you've consideredA Additional contextcc @jsignell https://github.com/stac-utils/pystac/issues/846#issuecomment-1405758442 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/8447/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |