home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 182943474

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/748#issuecomment-182943474 https://api.github.com/repos/pydata/xarray/issues/748 182943474 MDEyOklzc3VlQ29tbWVudDE4Mjk0MzQ3NA== 1217238 2016-02-11T16:28:04Z 2016-02-11T16:28:04Z MEMBER

OK, I can reproduce this. The issue seems to be that xarray uses the netCDF4 package as the default backend for reading netCDF4/HDF5 files, and netCDF4 seems to silently drop these variables with a compound dtype, even though allegedly it supports them.

The work around is to use engine='h5netcdf' explicitly when opening these netCDF files:

``` In [35]: ntwk_opened = xr.open_dataset('ring_slot.nc', engine='h5netcdf')

In [36]: ntwk_opened Out[36]: <xarray.Dataset> Dimensions: (f: 201, m: 2, n: 2) Coordinates: * f (f) float64 75.0 75.17 75.35 75.53 75.7 75.88 76.05 76.22 76.4 ... * m (m) int64 0 1 * n (n) int64 0 1 Data variables: s (f, m, n) complex128 (-0.503723180993+0.457844804761j) ... z0 (f, m) complex128 (50+0j) (50+0j) (50+0j) (50+0j) (50+0j) ... Attributes: name: ring slot ```

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