home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 167684282

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
167684282 MDU6SXNzdWUxNjc2ODQyODI= 919 ValueError: encountered unexpected variable nbnds 17951292 closed 0     3 2016-07-26T18:59:02Z 2016-07-27T22:37:02Z 2016-07-27T22:37:02Z NONE      

Using the recipe presented near the bottom of http://xarray.pydata.org/en/stable/io.html for reading in multiple files via opendap, I encounter the error referenced in the subject line.

Here is the call to read_netcdfs:

base = 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.dailyavgs/surface_gauss/air.2m.gauss.%4u.nc' files = [base % d for d in range(1948,2016,1)] ds_combined = read_netcdfs(files,dim='time',transform_func=None)

I am using option decode_cf=False in xr.open_dataset

Here is the entire content of the error message:

ValueError Traceback (most recent call last) <ipython-input-5-024a3f9ac990> in <module>() 2 base = 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.dailyavgs/surface_gauss/air.2m.gauss.%4u.nc' 3 files = [base % d for d in range(1948,2016,1)] ----> 4 ds_combined = read_netcdfs(files,dim='time',transform_func=None)

<ipython-input-4-36b274dcd63c> in read_netcdfs(files, dim, transform_func) 18 paths = files 19 datasets = [process_one_path(p) for p in paths] ---> 20 combined = xr.concat(datasets, dim) 21 return combined

/usr/local/lib/python2.7/dist-packages/xarray/core/combine.pyc in concat(objs, dim, data_vars, coords, compat, positions, indexers, mode, concat_over) 112 raise TypeError('can only concatenate xarray Dataset and DataArray ' 113 'objects, got %s' % type(first_obj)) --> 114 return f(objs, dim, data_vars, coords, compat, positions) 115 116

/usr/local/lib/python2.7/dist-packages/xarray/core/combine.pyc in _dataset_concat(datasets, dim, data_vars, coords, compat, positions) 231 for k, v in iteritems(ds.variables): 232 if k not in result_vars and k not in concat_over: --> 233 raise ValueError('encountered unexpected variable %r' % k) 234 elif (k in result_coord_names) != (k in ds.coords): 235 raise ValueError('%r is a coordinate in some datasets but not '

ValueError: encountered unexpected variable u'nbnds'

Any ideas as to how I can avoid triggering this error?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/919/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

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