issues: 461088361
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 461088361 | MDU6SXNzdWU0NjEwODgzNjE= | 3047 | Assign attributes to DataArrays when creating dataset with PydapDataStore + subsetting | 81219 | closed | 0 | 2 | 2019-06-26T17:14:10Z | 2019-06-27T12:02:34Z | 2019-06-27T12:02:33Z | CONTRIBUTOR | MCVE Code Sample```python import xarray as xr PyDAP access without subsetting - everything's fineurl = 'http://remotetest.unidata.ucar.edu/thredds/dodsC/testdods/coads_climatology.nc' ds = xr.open_dataset(url, engine='pydap', decode_times=False) ds.TIME.units # yields 'hour since 0000-01-01 00:00:00' PyDAP access with subsetting - variable attributes are global...dss = xr.open_dataset(url+'?SST[0:1:11][0:1:0][0:1:0]', engine='pydap', decode_times=False) print(dss.SST.attrs) # all good so far print(dss.TIME.attrs) # oh oh... nothing print(dss.attrs['TIME.units']) ``` Problem DescriptionOpening a subsetted dataset with PydapDataStore creates global attributes instead of variable attributes. Expected OutputAll the global Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/3047/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |