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/pull/3013#issuecomment-501075199,https://api.github.com/repos/pydata/xarray/issues/3013,501075199,MDEyOklzc3VlQ29tbWVudDUwMTA3NTE5OQ==,191850,2019-06-12T00:37:24Z,2019-06-12T00:37:24Z,CONTRIBUTOR,"thank you @dcherian! I added `offsets`, `units`, `descriptions` attributes. The other attributes (`res`, `nodata`, `crs`, `transform`, `bounds` and `res`) were already available. `mask_flag_enums` is a list of tuples, I have tried to add this attribute too but the `TestRasterio::test_serialization` fails with the message: ```python > ??? E ValueError: multi-dimensional array attributes not supported netCDF4/_netCDF4.pyx:1529: ValueError ``` @fmaussion any feedback is welcome! ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,454337592 https://github.com/pydata/xarray/pull/3013#issuecomment-501014979,https://api.github.com/repos/pydata/xarray/issues/3013,501014979,MDEyOklzc3VlQ29tbWVudDUwMTAxNDk3OQ==,191850,2019-06-11T20:42:37Z,2019-06-11T20:42:37Z,CONTRIBUTOR,"> Does rasterio define a set of valid attributes or can you assign arbitrary attributes? If so, should we read and assign all attributes as we do for netCDF files? @dcherian the attributes are pre-defined. Looking at the source code[1] of rasterio I found this list: ```property nodatavals # Nodata values for each band property nodata # The dataset's single nodata value property mask_flag_enums # Sets of flags describing the sources of band masks. property crs # The dataset's coordinate reference system property descriptions # Descriptions for each dataset band property transform # The dataset's georeferencing transformation matrix property offsets # Raster offset for each dataset band property scales # Raster scale for each dataset band property units # A list of str: one units string for each dataset band property bounds # Returns the lower left and upper right bounds of the dataset property res # Returns the (width, height) of pixels in the units of its ``` I belive that the attributes not handled yet by xarray are: **scales, offsets and units**. [1] - https://github.com/mapbox/rasterio/blob/1.0.24/rasterio/_base.pyx","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,454337592