issue_comments: 287549935
This data as json
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/1313#issuecomment-287549935 | https://api.github.com/repos/pydata/xarray/issues/1313 | 287549935 | MDEyOklzc3VlQ29tbWVudDI4NzU0OTkzNQ== | 18236610 | 2017-03-18T14:32:36Z | 2017-03-18T14:32:36Z | NONE | I already had netcdf4 installed. I am able to open other netcdf files. I get a similar error when I use open_dataset -- Exception AttributeError: "'netcdf_file' object has no attribute 'fp'" in <bound method netcdf_file.close of \<scipy.io.netcdf.netcdf_file object at 0x7eda808e8150>> ignored ValueErrorTraceback (most recent call last) <ipython-input-106-cb7e7a66f9a4> in <module>() ----> 1 ds_flux = xr.open_dataset(os.path.join(ddir, 'PHY_FLUXES_FILES/roms_dia_avg_y17.nc')) 2 ds_flux /home/dbalwada/.conda/envs/dhruvenv/lib/python2.7/site-packages/xarray/backends/api.pyc in open_dataset(filename_or_obj, group, decode_cf, mask_and_scale, decode_times, concat_characters, decode_coords, engine, chunks, lock, cache, drop_variables) 287 store = backends.NetCDF4DataStore(filename_or_obj, group=group) 288 elif engine == 'scipy': --> 289 store = backends.ScipyDataStore(filename_or_obj) 290 elif engine == 'pydap': 291 store = backends.PydapDataStore(filename_or_obj) /home/dbalwada/.conda/envs/dhruvenv/lib/python2.7/site-packages/xarray/backends/scipy_.pyc in init(self, filename_or_obj, mode, format, group, writer, mmap) 100 filename=filename_or_obj, 101 mode=mode, mmap=mmap, version=version) --> 102 self.ds = opener() 103 self._opener = opener 104 self._mode = mode /home/dbalwada/.conda/envs/dhruvenv/lib/python2.7/site-packages/xarray/backends/scipy_.pyc in _open_scipy_netcdf(filename, mode, mmap, version) 63 64 return scipy.io.netcdf_file(filename, mode=mode, mmap=mmap, ---> 65 version=version) 66 67 /home/dbalwada/.conda/envs/dhruvenv/lib/python2.7/site-packages/scipy/io/netcdf.pyc in init(self, filename, mode, mmap, version, maskandscale) 262 263 if mode in 'ra': --> 264 self._read() 265 266 def setattr(self, attr, value): /home/dbalwada/.conda/envs/dhruvenv/lib/python2.7/site-packages/scipy/io/netcdf.pyc in _read(self) 584 self._read_dim_array() 585 self._read_gatt_array() --> 586 self._read_var_array() 587 588 def _read_numrecs(self): /home/dbalwada/.conda/envs/dhruvenv/lib/python2.7/site-packages/scipy/io/netcdf.pyc in _read_var_array(self) 689 # Build rec array. 690 if self.use_mmap: --> 691 rec_array = self._mm_buf[begin:begin+self._recs*self._recsize].view(dtype=dtypes) 692 rec_array.shape = (self._recs,) 693 else: ValueError: new type not compatible with array. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
215162161 |