home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 405487803

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
405487803 MDU6SXNzdWU0MDU0ODc4MDM= 2733 Unable to construct indexVariable. 15742456 closed 0     3 2019-01-31T23:34:26Z 2019-02-04T07:13:04Z 2019-02-04T07:13:04Z NONE      

Hi, I am trying to reproduce the index-variable with the same data, dims, attributes, yet I got the following error message

```python-traceback Traceback (most recent call last):

File "<ipython-input-180-c993b3a40ff6>", line 4, in <module> latPP=xr.IndexVariable(latP.data,latP.dims,latP.attrs)

File "/linuxapps/anaconda/lib/python2.7/site-packages/xarray/core/variable.py", line 1618, in init fastpath)

File "/linuxapps/anaconda/lib/python2.7/site-packages/xarray/core/variable.py", line 263, in init self._dims = self._parse_dimensions(dims)

File "/linuxapps/anaconda/lib/python2.7/site-packages/xarray/core/variable.py", line 424, in _parse_dimensions % (dims, self.ndim))

ValueError: dimensions (90.0, 87.5, 85.0, 82.5, 80.0, 77.5, 75.0, 72.5, 70.0, 67.5, 65.0, 62.5, 60.0, 57.5, 55.0, 52.5, 50.0, 47.5, 45.0, 42.5, 40.0, 37.5, 35.0, 32.5, 30.0, 27.5, 25.0, 22.5, 20.0, 17.5, 15.0, 12.5, 10.0, 7.5, 5.0, 2.5, 0.0, -2.5, -5.0, -7.5, -10.0, -12.5, -15.0, -17.5, -20.0, -22.5, -25.0, -27.5, -30.0, -32.5, -35.0, -37.5, -40.0, -42.5, -45.0, -47.5, -50.0, -52.5, -55.0, -57.5, -60.0, -62.5, -65.0, -67.5, -70.0, -72.5, -75.0, -77.5, -80.0, -82.5, -85.0, -87.5, -90.0) must have the same length as the number of data dimensions, ndim=0 ```

The file is on Box drive. https://app.box.com/s/vc8m9c9blue3svbm9v7fy0xg1rkthut0 tmp_file = xr.open_dataset('olr.day.mean.nc') latP = tmp_file.variables['lat'] latPP=xr.IndexVariable(latP.data,latP.dims,latP.attrs)

Output of xr.show_versions()

xarray: 0.10.7 pandas: 0.23.1 numpy: 1.14.5 scipy: 1.1.0 netCDF4: 1.4.0
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2733/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

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