Rotating Rasters with Rasterio

Using Python to rotate satellite images while maintaining geolocation accuracy

Conor O'Sullivan
Towards Data Science
6 min readAug 7, 2023

--

Cover image showing how a raster data is rotated within its bouding box.
(source: author)

Raster data is similar to normal image data. Except every pixel is linked to a location on the Earth’s surface. This complicates things. If we want to rotate the data we must also consider the underlying coordinate reference system (CRS). Distorting a raster without adjusting its…

--

--

PhD Student | Writer | Houseplant Addict | Follow me for articles on IML, XAI, Algorithm Fairness and Remote Sensing