Closed Floabsolut closed 2 months ago
Thank you for this issue - it has all of the elements needed to re-produce the issue. Yes, rotated raster support could definitely be improved.
Dear @snowman2, thanks for the answer and validation of the issue. Let me know if I could help in any way.
See #772
Let me know if I could help in any way.
Thank you. This issue was very helpful. One step closer to better support rotated rasters.
Dear all, I hope this description will be clear, and that I am not raising a pointless issue. I am available for any questions, Sincerely
Code Sample, a copy-pastable example
let's say you define a funtion to create a dataset with geographical information like the one bellow: create_gis_dataset()
Now you create a dataset with this method, using an affine that does not satisfied the condition:
if affine.is_rectilinear and not _affine_has_rotation(affine)
for example
Then you want to reproject this dataset to the affine Affine(1, 0, 0, 0, 1, 0)
This reproject_match will fail with this error:
Problem description
My understanding of why it fails:
_generate_spatial_coords will output a coords with a value which is not 1 dimension.
Then, trying to reproject will fail with the error in this line here cause IndexVariable is expecting a 1-Dimensional object. My understanding so far is that rioxarray might not handle well "not squared" affines?
Environment Information
python -c "import rioxarray; rioxarray.show_versions()"
Installation method