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/438#issuecomment-330592365,https://api.github.com/repos/pydata/xarray/issues/438,330592365,MDEyOklzc3VlQ29tbWVudDMzMDU5MjM2NQ==,900941,2017-09-19T16:16:57Z,2017-09-19T16:16:57Z,CONTRIBUTOR,"Thanks @shoyer:
Is there a how to contribute guide? I basically look for how to write a test and run test to check if my adding this option did not break anything...
Cheers
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,89268800
https://github.com/pydata/xarray/issues/438#issuecomment-330580615,https://api.github.com/repos/pydata/xarray/issues/438,330580615,MDEyOklzc3VlQ29tbWVudDMzMDU4MDYxNQ==,900941,2017-09-19T15:39:53Z,2017-09-19T15:40:40Z,CONTRIBUTOR,"This seems to be working, and no deprecation warning... (But probably I have to sort paths...)
```python
In [8]: ds = xarray.concat([xarray.open_dataset(p, chunks={""time"": 100}) for p in paths], data_vars=""minimal"", dim=""time"")
In [9]: ds
Out[9]:
Dimensions: (time: 13505, x: 782, y: 808)
Coordinates:
* x (x) float64 -4.556e+06 -4.546e+06 -4.536e+06 ...
* y (y) float64 4.98e+06 4.97e+06 4.96e+06 4.95e+06 ...
* time (time) datetime64[ns] 1993-01-01T12:00:09.140797440 ...
Data variables:
lon (y, x) float64 156.5 156.5 156.6 156.6 156.7 ...
lat (y, x) float64 58.55 58.64 58.72 58.81 58.9 ...
lambert_conformal_conic int16 -32767
tmin (time, y, x) float64 nan nan nan nan nan nan ...
In [10]: lon = ds[""lon""]
In [11]: lon.ndim
Out[11]: 2
```
Cheers","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,89268800
https://github.com/pydata/xarray/issues/438#issuecomment-330569786,https://api.github.com/repos/pydata/xarray/issues/438,330569786,MDEyOklzc3VlQ29tbWVudDMzMDU2OTc4Ng==,900941,2017-09-19T15:05:27Z,2017-09-19T15:05:49Z,CONTRIBUTOR,"Thanks @spencerahill :
You are right, but the error message won't change, since the data_vars keyword is not known, and I am not able to change the dataset's attribute data_vars. I think I have to use concat explicitly...
Cheers","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,89268800
https://github.com/pydata/xarray/issues/438#issuecomment-330567549,https://api.github.com/repos/pydata/xarray/issues/438,330567549,MDEyOklzc3VlQ29tbWVudDMzMDU2NzU0OQ==,900941,2017-09-19T14:58:55Z,2017-09-19T14:58:55Z,CONTRIBUTOR,"Hi @shoyer:
where is this `data_vars='minimal'` set? or maybe I am using a wrong version of xarray? Here is what I get
```python
In [10]: ds = xarray.open_mfdataset(""/snow3/huziy/Daymet_daily_derivatives/daymet_spatial_agg_tmin_10x10/daymet_v3_tmin_*.nc4"", data_vars=""minimum"")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
----> 1 ds = xarray.open_mfdataset(""/snow3/huziy/Daymet_daily_derivatives/daymet_spatial_agg_tmin_10x10/daymet_v3_tmin_*.nc4"", data_vars=""minimum"")
/snow3/huziy/Python/python_builds/anaconda3/envs/py3.6-a3/lib/python3.6/site-packages/xarray/backends/api.py in open_mfdataset(paths, chunks, concat_dim, compat, preprocess, engine, lock, **kwargs)
503 paths = sorted(glob(paths))
504 else:
--> 505 paths = [str(p) if isinstance(p, path_type) else p for p in paths]
506
507 if not paths:
/snow3/huziy/Python/python_builds/anaconda3/envs/py3.6-a3/lib/python3.6/site-packages/xarray/backends/api.py in (.0)
503 paths = sorted(glob(paths))
504 else:
--> 505 paths = [str(p) if isinstance(p, path_type) else p for p in paths]
506
507 if not paths:
TypeError: open_dataset() got an unexpected keyword argument 'data_vars'
In [11]: ds = xarray.open_mfdataset(""/snow3/huziy/Daymet_daily_derivatives/daymet_spatial_agg_tmin_10x10/daymet_v3_tmin_*.nc4"")
In [12]: ds.data_vars = ""minimum""
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in ()
----> 1 ds.data_vars = ""minimum""
/snow3/huziy/Python/python_builds/anaconda3/envs/py3.6-a3/lib/python3.6/site-packages/xarray/core/common.py in __setattr__(self, name, value)
180 raise AttributeError(
181 ""cannot set attribute %r on a %r object. Use __setitem__ ""
--> 182 ""style assignment (e.g., `ds['name'] = ...`) instead to ""
183 ""assign variables."" % (name, type(self).__name__))
184 object.__setattr__(self, name, value)
AttributeError: can't set attribute
In [13]: ds.data_vars
Out[13]:
Data variables:
tmin (time, y, x) float64 nan nan nan nan nan nan ...
lon (time, y, x) float64 156.5 156.5 156.6 156.6 ...
lat (time, y, x) float64 58.55 58.64 58.72 58.81 ...
lambert_conformal_conic (time) int64 -32767 -32767 -32767 -32767 -32767 ...
In [16]: xarray.__version__
Out[16]: '0.9.6'
```
Cheers
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,89268800