Closed sehHeiden closed 1 year ago
This sounds like something worth looking into. However, we need a reproducible example. Are you able to provide a simple code snipped with example rasters that re-produce this issue?
Can you try with the latest rioxarray (0.12.0)?
I tired the version 0.12.0 error is the same.
I fixed the first problem of turning the rows upsidedown with: raster.rio.reproject(raster.rio.crs)
.
original transform: Affine(5.0, 0.0, 588802.5, 0.0, 5.0, 5235857.5)
,
changed: Affine(5.0, 0.0, 588802.5, 0.0, -5.0, 5235997.5)
I cannot share the data, because of legal reasons.
The latest rasterio is 1.3.2. I would recommend upgrading that as well and seeing if it helps.
I cannot share the data, because of legal reasons.
@Meresmata check out https://github.com/cogeotiff/rio-faux
Unfortunately there isn't much we can do here with the current information.
Code Sample, a copy-pastable example if possible
A set of arrays are merged and than saved (the later for finding the errors). The array are from an DGM in south Germany. The example contains 4 raster files. Two files north of other files. I cannot share the files, for legal reasons.
Problem description
Two things happen. After saving the megered raster I can see, that the southern 2 raster are turned upside down (north is south). The Northern two raster are correctly north of the first two raster, but also upside down.
The second problem. When trying the bounds parameter I get the error:
Expected Output
Environment Information
Installation method
Conda environment information (if you installed with conda):
Environment (
conda list
):