home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1137148310

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
1137148310 I_kwDOAMm_X85Dx4GW 6274 Enable to parse more backend_kwargs when opening via PydapDataStore (e.g. output_grid) 12813228 closed 0     2 2022-02-14T11:15:15Z 2022-02-17T12:51:49Z 2022-02-17T12:51:49Z CONTRIBUTOR      

Is your feature request related to a problem?

I am planning to use xarray to access netcdf data from a thredds server. For my particular application, I need to be able to set pydap client option output_grid=False, to avoid some issues that I have experienced with a particular dataset on the server I am downloading from.

I use xarray.open_dataset to access the data via pydap backend, which currently only allows to specify "session" as a keyword in backend_kwargs.

https://github.com/pydata/xarray/blob/8c5c230881d616af32c5a42cca261eb11fce3916/xarray/backends/pydap_.py#L89

It would be helpful to be able to provide additional backend_kwargs accepted by the pydap client (such as output_grid).

https://github.com/pydap/pydap/blob/dbe9b8d15831f21c28b97ed5661b2708faec45f2/src/pydap/client.py#L58

Describe the solution you'd like

It could be perhaps as simple as extending the signature of PydapDataStore.open from:

```python @classmethod def open(cls, url, session=None):

ds = pydap.client.open_url(url, session=session)
return cls(ds)

```

to, e.g.:

```python @classmethod def open(cls, url, **kwargs):

ds = pydap.client.open_url(url, **kwargs)
return cls(ds)

```

Describe alternatives you've considered

No response

Additional context

No response

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/6274/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 75.63ms · About: xarray-datasette