rio.write_crs() deletes the 'grid_mapping' attribute #795
-
I have inherited a code which has many functions that do not expect CRS to be present in the xarray dataset. So the first thing the function does is to do Dockerfile.txt The side effect of this is however that the attribute 'grid_mapping' attribute gets deleted from the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
grid_mapping should be in encoding, not attrs. See: in #282 It is recommended to use |
Beta Was this translation helpful? Give feedback.
grid_mapping should be in encoding, not attrs. See: in #282
It is recommended to use
rio.grid_mapping
andrio.write_grid_mapping
.