Closed vincentsarago closed 1 year ago
Welcome!
The coordinates of the grid cell represent the centroid of the grid cell. To get the boundary of the raster, you have to take into account the resolution of the grid cell and add/subtract from the bounding centroid coordinates.
@snowman2 so I'm right to assume that the coordinates from the zarr file are incorrect because they represent UpperLeff corner of the grid instead of the centroid?
It's unlikely that a user will want the bounds
of it's data to overflow the valid
bounds for epsg:4326 (-180.0, 90.0, 179.375, -90.0)
I'm right to assume that the coordinates from the zarr file are incorrect because they represent UpperLeff corner of the grid instead of the centroid?
I have only encountered files with the coordinates representing the centroid. It is likely incorrect or at least non-standard
thank you @snowman2 🙏
👋 I've looked at all
issues
mentioning bounds but I don't think I found one similar to the one I have (I'm sorry if there is)When using
ds.rio.bounds()
for this datasets3://power-analysis-ready-datastore/power_901_annual_meteorology_utc.zarr
, I'm getting values that exceed the values in the array itself 👇Environment Information