html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/1068#issuecomment-327252508,https://api.github.com/repos/pydata/xarray/issues/1068,327252508,MDEyOklzc3VlQ29tbWVudDMyNzI1MjUwOA==,1217238,2017-09-05T17:46:54Z,2017-09-05T17:47:19Z,MEMBER,"@mrpgraae no, I don't think this has been implemented yet.
Please take a look at #1508 for an example of the model to use:
- Define an `open` classmethod method for loading from a URL.
- `__init__` should accept a pydap dataset object (whatever is returned from `pydap.client.open_url`)
You are also welcome to add any keyword parameters (e.g., `session`) that `open_url` accepts to the `open` method.
So the user API becomes:
```python
pydap_ds = pydap.client.open_url(url, session=session)
store = xarray.backends.PydapDataStore(pydap_ds)
ds = xarray.open_dataset(store)
```
or
```python
store = xarray.backends.PydapDataStore.open(url, session=session)
ds = xarray.open_dataset(store)
```
","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,186169975
https://github.com/pydata/xarray/issues/1068#issuecomment-305946578,https://api.github.com/repos/pydata/xarray/issues/1068,305946578,MDEyOklzc3VlQ29tbWVudDMwNTk0NjU3OA==,1217238,2017-06-03T03:04:13Z,2017-06-03T03:04:13Z,MEMBER,"Nevermind, I figured it out (I was using an old version of pydap by mistake). See #1439 for the pydap fix.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,186169975
https://github.com/pydata/xarray/issues/1068#issuecomment-305830027,https://api.github.com/repos/pydata/xarray/issues/1068,305830027,MDEyOklzc3VlQ29tbWVudDMwNTgzMDAyNw==,1217238,2017-06-02T15:54:23Z,2017-06-02T15:54:23Z,MEMBER,I spent a few minutes on this but am still getting `AttributeError`. It would be great if someone could put some time into debugging this. Should be as simple as installing pydap (in both python 2 and 3 virtual/conda environments) and getting `py.test -k PydapTest` to pass.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,186169975
https://github.com/pydata/xarray/issues/1068#issuecomment-290879727,https://api.github.com/repos/pydata/xarray/issues/1068,290879727,MDEyOklzc3VlQ29tbWVudDI5MDg3OTcyNw==,1217238,2017-04-01T00:42:35Z,2017-04-01T00:42:35Z,MEMBER,"> I'm still having problems trying to get xarray.open_dataset to work with pydap. Using the latest commit on pydap/master (in which pydap/pydap#48 is merged) I'm now getting a new error: AttributeError: '' object has no attribute 'encode'. When I have some time, I'll look into it further and try to see what else is needed to restore compatibility.
Indeed, it would be great if someone using pydap could take a look into this. You can find our logic for interoperating with pydap here: https://github.com/pydata/xarray/blob/master/xarray/backends/pydap_.py","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,186169975
https://github.com/pydata/xarray/issues/1068#issuecomment-288950068,https://api.github.com/repos/pydata/xarray/issues/1068,288950068,MDEyOklzc3VlQ29tbWVudDI4ODk1MDA2OA==,1217238,2017-03-24T07:14:10Z,2017-03-24T07:14:10Z,MEMBER,"Pydap has a new v3.2 release, but it still needs some fixes to work with xarray -- or xarray needs to be updated to work with the new version of pydap. I think https://github.com/pydap/pydap/pull/48 once merged would probably be enough to restore xarray compatibility.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,186169975
https://github.com/pydata/xarray/issues/1068#issuecomment-288948872,https://api.github.com/repos/pydata/xarray/issues/1068,288948872,MDEyOklzc3VlQ29tbWVudDI4ODk0ODg3Mg==,1217238,2017-03-24T07:06:00Z,2017-03-24T07:06:00Z,MEMBER,"Parsing username/password from the URL would be very easy to add.
We need to figure out a solution for the proliferating arguments on `open_dataset` before we add many more, so I would prefer that for now.
Another option is to add `session` as an argument on `xarray.backends.PydapDataStore`, and encourage passing `PydapDataStore` objects into `xarray.open_dataset` for extra customizability, e.g.,
```
store = xarray.backends.PydapDataStore(url, session)
ds = xarray.open_dataset(store)
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,186169975
https://github.com/pydata/xarray/issues/1068#issuecomment-257485973,https://api.github.com/repos/pydata/xarray/issues/1068,257485973,MDEyOklzc3VlQ29tbWVudDI1NzQ4NTk3Mw==,1217238,2016-11-01T04:24:40Z,2016-11-01T04:24:40Z,MEMBER,"If the dataset has a ""time"" dimension, try accessing the first few values. Can you view them in pydap? Xarray's open_dataset does a little more work than pydap's open_url, insofar as it actually downloads some array data.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,186169975
https://github.com/pydata/xarray/issues/1068#issuecomment-257321771,https://api.github.com/repos/pydata/xarray/issues/1068,257321771,MDEyOklzc3VlQ29tbWVudDI1NzMyMTc3MQ==,1217238,2016-10-31T15:16:14Z,2016-10-31T15:16:14Z,MEMBER,"If you write `engine='pydap'` in open_dataset, the URL should be passed directly on to pydap, but you'll still need to follow all of their other instructions. If you're getting an error message from xarray, let us know but otherwise I'm at a loss -- you should check with the folks at NASA.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,186169975