Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    I think the problem is related to the reshape parameter of the scipy.ndimage.rotate function. We can see in the documentation that this parameter changes the resolution of the image so that it keeps the same number of rows and columns. However I don't understand why you use the rotate function to perform the rotation, you can do it directly with rasterio or gdal. Commented Jan 4, 2022 at 10:31
  • Thank you for you information about the reshape parameter. I did try to use rasterio and gdal (in the last case using the same resources you pointed to). But I did not succeed to visualize them rotated, and somehow that's how I ended up using the rotate function. If will try to use the rasterio issue you linked to and come back if I can't do any progress. Commented Jan 11, 2022 at 16:23
  • @Atm I came with a code that uses rasterio (see Solution 2)! But my pivot seems off :( Any idea of what I got wrong? Commented Jan 13, 2022 at 0:12