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-249390682,https://api.github.com/repos/pydata/xarray/issues/748,249390682,MDEyOklzc3VlQ29tbWVudDI0OTM5MDY4Mg==,1217238,2016-09-24T22:16:17Z,2016-09-24T22:16:29Z,MEMBER,"@alexamici Something else must have gone wrong here -- your example works for me: ``` In [9]: dataset = xr.Dataset({'data': np.zeros((2,), dtype='complex128')}) In [10]: dataset Out[10]: Dimensions: (data: 2) Coordinates: * data (data) complex128 0j 0j Data variables: *empty* In [11]: dataset.to_netcdf('tmp.nc', engine='h5netcdf') ``` Maybe you need to update to a newer version of h5py? (Just a guess) ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,131972229 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]: 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 https://github.com/pydata/xarray/issues/748#issuecomment-181438176,https://api.github.com/repos/pydata/xarray/issues/748,181438176,MDEyOklzc3VlQ29tbWVudDE4MTQzODE3Ng==,1217238,2016-02-08T15:57:02Z,2016-02-08T15:57:02Z,MEMBER,"This looks bad! I was pretty sure we had tested this with h5netcdf. I'll take a look later... what version of h5py are you using? ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,131972229