home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 445524755

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/2560#issuecomment-445524755 https://api.github.com/repos/pydata/xarray/issues/2560 445524755 MDEyOklzc3VlQ29tbWVudDQ0NTUyNDc1NQ== 2622379 2018-12-09T10:06:24Z 2018-12-09T10:06:24Z NONE

I have done a bit more testing on this, and I believe the issue may not necessarily be with xarray but with rasterio (disclaimer: I haven't tested your pull request yet).

I can reproduce the following on Ubuntu and on Travis CI. On Mac OS none of these errors occur.

Minimum example:

python import xarray as xr import numpy as np import rasterio # The rasterio import makes the last line of this code fail. ds = xr.Dataset() ds['data'] = (('y', 'x'), np.ones((10, 10))) ds.to_netcdf('test.nc', engine='netcdf4')

I was able to fix the error by prepending a

python import netCDF4

at the very top of the script.

A very similar thing happens with engine='h5netcdf'. The same script works without rasterio, fails with rasterio, and can be fixed by inserting import h5netcdf at the top of the script.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  383057458
Powered by Datasette · Queries took 0.653ms · About: xarray-datasette