issues: 275744315
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
275744315 | MDU6SXNzdWUyNzU3NDQzMTU= | 1732 | IndexError when printing dataset from an Argo file | 1956032 | closed | 0 | 14 | 2017-11-21T15:04:16Z | 2017-11-27T08:21:15Z | 2017-11-25T19:49:24Z | CONTRIBUTOR | Working with a netcdf Argo data file, I encountered the following error: ```python Sample data file here: https://storage.googleapis.com/myargo/sample/4902076_prof.ncargofile = '4902076_prof.nc' ds = xr.open_dataset(argofile) print ds [...full trace below...] Out[]: IndexError: The indexing operation you are attempting to perform is not valid on netCDF4.Variable object. Try loading your data into memory first by calling .load(). Original traceback: Traceback (most recent call last): File "/Users/gmaze/anaconda/envs/obidam/lib/python2.7/site-packages/xarray/backends/netCDF4_.py", line 62, in getitem data = getitem(self.get_array(), key) File "netCDF4/_netCDF4.pyx", line 3961, in netCDF4._netCDF4.Variable.getitem File "netCDF4/_netCDF4.pyx", line 4796, in netCDF4._netCDF4.Variable._get IndexError ``` The error remains the same even if I try to load the data as suggested in the error message. However, I can keep working with the dataset and access variable. This only affects the printing of the ds object. I can't get to determine where in my package updating workflow this really pop out. It used to work very fined up to xarray version 0.9.5. Here I'm using 0.10.0rc1 (see full version details below). It is worth noting that using the 'scipy' engine solves the issue !
Exact trace:
Expected Output:
Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1732/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |