```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,548263148
https://github.com/pydata/xarray/issues/3007#issuecomment-501302890,https://api.github.com/repos/pydata/xarray/issues/3007,501302890,MDEyOklzc3VlQ29tbWVudDUwMTMwMjg5MA==,10137,2019-06-12T14:36:44Z,2019-06-12T14:36:44Z,NONE,"I know what ""NaN"" means. I was hoping that by transforming the dataset into a dataframe and then returning back, the dataset variables would recover its original shape.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,454073421
https://github.com/pydata/xarray/issues/2535#issuecomment-445939304,https://api.github.com/repos/pydata/xarray/issues/2535,445939304,MDEyOklzc3VlQ29tbWVudDQ0NTkzOTMwNA==,10137,2018-12-10T19:23:14Z,2018-12-10T19:23:14Z,NONE,"It seems that this is not a problem with xarray but only with rasterio and netCDF4. Also this fails:
```python
import rasterio
import netCDF4
with netCDF4.Dataset('test.nc', mode='w') as ds:
ds.createDimension('x')
ds.createVariable('foo', float, dimensions=('x'))
print(ds)
```
Commenting out `import rasterio` removes the HDF error. I’ll report this to rasterio.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,376389539
https://github.com/pydata/xarray/issues/2535#issuecomment-443840119,https://api.github.com/repos/pydata/xarray/issues/2535,443840119,MDEyOklzc3VlQ29tbWVudDQ0Mzg0MDExOQ==,10137,2018-12-03T19:33:17Z,2018-12-03T19:33:17Z,NONE,"I have similar problem, when importing `rasterio` in the same script (not even using it for anything). This fails with HDF error:
import xarray as xa
import numpy as np
#import netCDF4
import rasterio
ds = xa.Dataset()
ds['z'] = (('y', 'x'), np.zeros((100, 100), np.float32))
print(ds)
ds.to_netcdf('test.nc')
ds.close()
with xa.open_dataset('test.nc') as ds:
print(ds)
If I import `netCDF4` before `rasterio` it works fine (uncomment line 3). This is probably an issue with rasterio somehow.
I installed everything with pip:
$ pip install Cython
$ pip install netCDF4 xarray rasterio numpy
From `pip freeze`:
affine==2.2.1
attrs==18.2.0
cftime==1.0.3
Click==7.0
click-plugins==1.0.4
cligj==0.5.0
Cython==0.29.1
netCDF4==1.4.2
numpy==1.15.4
pandas==0.23.4
pyparsing==2.3.0
python-dateutil==2.7.5
pytz==2018.7
rasterio==1.0.11
six==1.11.0
snuggs==1.4.2
xarray==0.11.0
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,376389539
https://github.com/pydata/xarray/issues/2139#issuecomment-389622523,https://api.github.com/repos/pydata/xarray/issues/2139,389622523,MDEyOklzc3VlQ29tbWVudDM4OTYyMjUyMw==,10137,2018-05-16T18:37:24Z,2018-05-16T18:37:24Z,NONE,Does that sound like it will play well with GeoViews if I want widgets for the categorical vars?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,323703742
https://github.com/pydata/xarray/issues/2139#issuecomment-389622155,https://api.github.com/repos/pydata/xarray/issues/2139,389622155,MDEyOklzc3VlQ29tbWVudDM4OTYyMjE1NQ==,10137,2018-05-16T18:36:17Z,2018-05-16T18:36:17Z,NONE,Ok. Looks like the way forward is a netCDF file for each level of my categorical variables. Will give it a shot.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,323703742
https://github.com/pydata/xarray/issues/2139#issuecomment-389618279,https://api.github.com/repos/pydata/xarray/issues/2139,389618279,MDEyOklzc3VlQ29tbWVudDM4OTYxODI3OQ==,10137,2018-05-16T18:24:02Z,2018-05-16T18:24:02Z,NONE,"@shoyer Thank you. Does metacsv look likely to work to you? It has attracted almost no attention so I wonder if it will exhaust memory. I'm kind of surprised this path (csv -> xarray) isn't better fleshed out as I would have expected it to be very common, perhaps the most common esp. for ""found data.""","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,323703742
https://github.com/pydata/xarray/issues/2139#issuecomment-389596244,https://api.github.com/repos/pydata/xarray/issues/2139,389596244,MDEyOklzc3VlQ29tbWVudDM4OTU5NjI0NA==,10137,2018-05-16T17:13:11Z,2018-05-16T17:13:11Z,NONE,This looks potentially helpful http://metacsv.readthedocs.io/en/latest/,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,323703742
https://github.com/pydata/xarray/issues/2139#issuecomment-389592602,https://api.github.com/repos/pydata/xarray/issues/2139,389592602,MDEyOklzc3VlQ29tbWVudDM4OTU5MjYwMg==,10137,2018-05-16T17:01:37Z,2018-05-16T17:01:37Z,NONE,PS: I started with Dask but haven't found a way to go from Dask to xarray.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,323703742
https://github.com/pydata/xarray/issues/2139#issuecomment-389592243,https://api.github.com/repos/pydata/xarray/issues/2139,389592243,MDEyOklzc3VlQ29tbWVudDM4OTU5MjI0Mw==,10137,2018-05-16T17:00:24Z,2018-05-16T17:00:24Z,NONE,"Hi @jhamman The original data is literally just a flat csv file with ie: lat,lon,epoch,cat1,cat2,var1,var2,...,var50 with 1 billion rows.
I'm looking to xarray for GeoViews, which I think would benefit from having the data properly grouped/indexed by its categories","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,323703742
https://github.com/pydata/xarray/pull/1683#issuecomment-364970290,https://api.github.com/repos/pydata/xarray/issues/1683,364970290,MDEyOklzc3VlQ29tbWVudDM2NDk3MDI5MA==,10137,2018-02-12T16:06:44Z,2018-02-12T16:06:44Z,NONE,Closing. Superseded by #1682.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,270701183
https://github.com/pydata/xarray/issues/1860#issuecomment-360970213,https://api.github.com/repos/pydata/xarray/issues/1860,360970213,MDEyOklzc3VlQ29tbWVudDM2MDk3MDIxMw==,10137,2018-01-27T08:41:10Z,2018-01-27T08:41:10Z,NONE,This was fixed through https://github.com/pydap/pydap/pull/159! Thank you.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291926319
https://github.com/pydata/xarray/issues/1860#issuecomment-360969685,https://api.github.com/repos/pydata/xarray/issues/1860,360969685,MDEyOklzc3VlQ29tbWVudDM2MDk2OTY4NQ==,10137,2018-01-27T08:29:52Z,2018-01-27T08:29:52Z,NONE,"The method `pydap.model.BaseType._get_data_index(self, index=Ellipsis)` gets value 'tlml' for `index`. It tries to `return self._data[index]`, but `self._data` is a `numpy.ndarray`. Hence the `IndexError`.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291926319
https://github.com/pydata/xarray/issues/1860#issuecomment-360807708,https://api.github.com/repos/pydata/xarray/issues/1860,360807708,MDEyOklzc3VlQ29tbWVudDM2MDgwNzcwOA==,10137,2018-01-26T15:01:55Z,2018-01-26T15:01:55Z,NONE,"For some reason, the name of the variable at some point becomes 'tlml.tlml'. Method `pydap.model.StructureType._getitem_string` would work fine if the name was just 'tlml'. Maybe this is related to https://github.com/pydap/pydap/issues/121?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291926319
https://github.com/pydata/xarray/issues/1857#issuecomment-360782142,https://api.github.com/repos/pydata/xarray/issues/1857,360782142,MDEyOklzc3VlQ29tbWVudDM2MDc4MjE0Mg==,10137,2018-01-26T13:18:10Z,2018-01-26T13:18:10Z,NONE,"Thanks for the suggestion! Installing both latest master of xarray (0092911) and latest master of pydap (4ae73e3) fixed this issue, and now I can open the dataset. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291524555
https://github.com/pydata/xarray/issues/1857#issuecomment-360468449,https://api.github.com/repos/pydata/xarray/issues/1857,360468449,MDEyOklzc3VlQ29tbWVudDM2MDQ2ODQ0OQ==,10137,2018-01-25T13:37:37Z,2018-01-25T13:37:37Z,NONE,"After pulling (Git says ‘Already up-to-date.’), my xarray version (`xarray.__version__`) is still '0.10.0+dev44.g0a0593d'. What version are you using?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291524555
https://github.com/pydata/xarray/issues/1857#issuecomment-360461190,https://api.github.com/repos/pydata/xarray/issues/1857,360461190,MDEyOklzc3VlQ29tbWVudDM2MDQ2MTE5MA==,10137,2018-01-25T13:06:15Z,2018-01-25T13:06:15Z,NONE,"Same thing:
```
Traceback (most recent call last):
File ""C:\Anaconda3\envs\xa_test\lib\site-packages\pydap\model.py"", line 295, in __getattr__
return self[attr]
File ""C:\Anaconda3\envs\xa_test\lib\site-packages\pydap\model.py"", line 556, in __getitem__
return StructureType.__getitem__(self, key)
File ""C:\Anaconda3\envs\xa_test\lib\site-packages\pydap\model.py"", line 326, in __getitem__
return self._dict[key]
KeyError: 'shape'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ""C:\Anaconda3\envs\xa_test\lib\site-packages\pydap\model.py"", line 180, in __getattr__
return self.attributes[attr]
KeyError: 'shape'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File """", line 1, in
File ""c:\src\xarray\xarray\backends\api.py"", line 305, in open_dataset
return maybe_decode_store(store, lock)
File ""c:\src\xarray\xarray\backends\api.py"", line 225, in maybe_decode_store
drop_variables=drop_variables)
File ""c:\src\xarray\xarray\conventions.py"", line 598, in decode_cf
vars, attrs = obj.load()
File ""c:\src\xarray\xarray\backends\common.py"", line 133, in load
for k, v in self.get_variables().items())
File ""c:\src\xarray\xarray\backends\pydap_.py"", line 85, in get_variables
for k in self.ds.keys())
File ""c:\src\xarray\xarray\core\utils.py"", line 309, in FrozenOrderedDict
return Frozen(OrderedDict(*args, **kwargs))
File ""c:\src\xarray\xarray\backends\pydap_.py"", line 85, in
for k in self.ds.keys())
File ""c:\src\xarray\xarray\backends\pydap_.py"", line 79, in open_store_variable
data = indexing.LazilyIndexedArray(PydapArrayWrapper(var))
File ""c:\src\xarray\xarray\core\indexing.py"", line 482, in __init__
key = BasicIndexer((slice(None),) * array.ndim)
File ""c:\src\xarray\xarray\core\utils.py"", line 428, in ndim
return len(self.shape)
File ""c:\src\xarray\xarray\backends\pydap_.py"", line 20, in shape
return self.array.shape
File ""C:\Anaconda3\envs\xa_test\lib\site-packages\pydap\model.py"", line 297, in __getattr__
return DapType.__getattr__(self, attr)
File ""C:\Anaconda3\envs\xa_test\lib\site-packages\pydap\model.py"", line 184, in __getattr__
% (self.__class__, attr))
AttributeError: '' object has no attribute 'shape'
```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291524555
https://github.com/pydata/xarray/pull/1682#issuecomment-355678395,https://api.github.com/repos/pydata/xarray/issues/1682,355678395,MDEyOklzc3VlQ29tbWVudDM1NTY3ODM5NQ==,10137,2018-01-05T22:07:03Z,2018-01-05T22:07:03Z,NONE,"Now that the tests are passing again, is there anything else left to change?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,270677100
https://github.com/pydata/xarray/pull/1682#issuecomment-351810655,https://api.github.com/repos/pydata/xarray/issues/1682,351810655,MDEyOklzc3VlQ29tbWVudDM1MTgxMDY1NQ==,10137,2017-12-14T19:25:03Z,2017-12-14T19:25:03Z,NONE,"I've refactored setting the I/O engine option as per our discussion. Hopefully, it captures now all the requested functionality.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,270677100
https://github.com/pydata/xarray/pull/1682#issuecomment-347917241,https://api.github.com/repos/pydata/xarray/issues/1682,347917241,MDEyOklzc3VlQ29tbWVudDM0NzkxNzI0MQ==,10137,2017-11-29T16:32:56Z,2017-11-29T16:32:56Z,NONE,"Let's see if we can get this PR over the line... 😄
A list of engines would need some way of declaring their I/O capabilities: only file-based, only HTTP-based, or both. Something like:
```python
io_engines = [
{'engine': 'netcdf4',
'capabilities': ['file', 'http']},
{'engine': 'pydap',
'capabilities': ['http']},
{'engine': 'scipy',
'capabilities': ['file']},
{'engine': 'h5netcdf',
'capabilities': ['file']},
]
```
On xarray import or any time this option would change, the list of engines would be checked to remove unavailable engines.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,270677100
https://github.com/pydata/xarray/pull/1682#issuecomment-341773389,https://api.github.com/repos/pydata/xarray/issues/1682,341773389,MDEyOklzc3VlQ29tbWVudDM0MTc3MzM4OQ==,10137,2017-11-03T17:30:18Z,2017-11-03T17:30:18Z,NONE,"Yes, there could be more I/O engine options. How about `file_engine` and `web_engine`? Keeping the naming more generic as there may be other file-based formats or data web services in the future.
On the other hand, setting this global option should indicate a willingness to accept the consequences. If automatic selection of the optional I/O engine is preferred, this global option should not be set.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,270677100
https://github.com/pydata/xarray/pull/1682#issuecomment-341610428,https://api.github.com/repos/pydata/xarray/issues/1682,341610428,MDEyOklzc3VlQ29tbWVudDM0MTYxMDQyOA==,10137,2017-11-03T02:35:14Z,2017-11-03T02:35:14Z,NONE,"How about `io_engine` for the option's name? The data can come from an OPeNDAP server as well.
I have reverted to the original `engine=None` in the functions/methods and use
```python
engine = engine or OPTIONS['io_engine']
```
to assign the correct `engine` value.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,270677100
https://github.com/pydata/xarray/issues/1484#issuecomment-317472105,https://api.github.com/repos/pydata/xarray/issues/1484,317472105,MDEyOklzc3VlQ29tbWVudDMxNzQ3MjEwNQ==,10137,2017-07-24T16:08:30Z,2017-07-24T16:08:30Z,NONE,Just saw xr.DataArray.dot(). PROBLEM SOLVED.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,244702576
https://github.com/pydata/xarray/issues/1484#issuecomment-317470340,https://api.github.com/repos/pydata/xarray/issues/1484,317470340,MDEyOklzc3VlQ29tbWVudDMxNzQ3MDM0MA==,10137,2017-07-24T16:02:40Z,2017-07-24T16:02:40Z,NONE,"How do I make dot product (np.dot or pandas.dataframe.dot) between two DataArrays?
X has dimensions [dim_0, dim_1, dim_2], Y has dimensions [dim0, dim3].
result should have dimensions [dim_1, dim2, dim3].
result = np.dot(X,Y)
OR, result = pd.DataFrame.dot(X,Y)
In both cases, error ""shapes are not aligned"" occurred.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,244702576
https://github.com/pydata/xarray/issues/448#issuecomment-116411269,https://api.github.com/repos/pydata/xarray/issues/448,116411269,MDEyOklzc3VlQ29tbWVudDExNjQxMTI2OQ==,10137,2015-06-29T03:22:52Z,2015-06-29T03:22:52Z,NONE,"I agree that it's the point with np.asarray, but given the implementation you'd think np.asanyarray would work. My initial takeaway (until examining the source) was that this was an ndarray with additional attributes and properties. Perhaps, I'm leaning too far towards numpy and too far away from pandas.
As background: my usage involves RF pattern data which typically involves a lot of independent variables to lug around as well as the measured data.
I'll look into your other suggestions. Thank you for your reply.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,91676831