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/2868#issuecomment-1091874142,https://api.github.com/repos/pydata/xarray/issues/2868,1091874142,IC_kwDOAMm_X85BFK1e,2448579,2022-04-07T15:23:05Z,2022-04-07T15:23:25Z,MEMBER,From this [comment](https://github.com/Unidata/netcdf4-python/issues/905#issuecomment-480600578) it seems like the value should be a numpy structured array instead of a dict. Can you try that instead?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,429572364 https://github.com/pydata/xarray/issues/2868#issuecomment-1091870231,https://api.github.com/repos/pydata/xarray/issues/2868,1091870231,IC_kwDOAMm_X85BFJ4X,1446586,2022-04-07T15:19:27Z,2022-04-07T15:19:27Z,NONE,"It is supporter in netcdf4 Compound types should be used. See: https://github.com/Unidata/netcdf4-python/issues/905","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,429572364 https://github.com/pydata/xarray/issues/2868#issuecomment-480375712,https://api.github.com/repos/pydata/xarray/issues/2868,480375712,MDEyOklzc3VlQ29tbWVudDQ4MDM3NTcxMg==,1217238,2019-04-05T18:22:32Z,2019-04-05T18:22:32Z,MEMBER,"netCDF4-Python doesn't seem to support this: ``` In [1]: import netCDF4 In [2]: f = netCDF4.Dataset('test.nc', 'w') In [3]: f.foo = {'bar': 2} --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in () ----> 1 f.foo = {'bar': 2} netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Dataset.__setattr__() netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Dataset.setncattr() netCDF4/_netCDF4.pyx in netCDF4._netCDF4._set_att() TypeError: illegal data type for attribute b'foo', must be one of dict_keys(['S1', 'i1', 'u1', 'i2', 'u2', 'i4', 'u4', 'i8', 'u8', 'f4', 'f8']), got O ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,429572364