home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 258018067

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/1075#issuecomment-258018067 https://api.github.com/repos/pydata/xarray/issues/1075 258018067 MDEyOklzc3VlQ29tbWVudDI1ODAxODA2Nw== 1217238 2016-11-02T22:24:43Z 2016-11-02T22:25:08Z MEMBER

This does work for netCDF3 files, if you provide a file-like object (e.g., wrapped in BytesIO) or set engine='scipy'.

Unfortunately, this is a netCDF4/HDF5 file:

```

data.raw.read(8) '\x89HDF\r\n\x1a\n' ```

And as yet, there is no support for reading from file-like objects in either h5py (https://github.com/h5py/h5py/issues/552) or python-netCDF4 (https://github.com/Unidata/netcdf4-python/issues/295). So we're currently stuck :(.

One possibility is to use the new HDF5 library pyfive with h5netcdf (https://github.com/shoyer/h5netcdf/issues/25). But pyfive doesn't have enough features yet to read netCDF files.

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