Raster Analysis
Read, reproject, clip and summarise raster data in Python.
Raster work fails differently from vector work: nothing raises an exception when a grid is half a pixel out of place, resampled with the wrong method, or read with NoData treated as a real value. These guides start with what a raster actually is — an array, a dtype, a NoData marker and an affine transform — then work through reprojection, clipping, mosaicking, sampling, zonal statistics and the conversions between raster and vector, ending with the two misalignments that waste the most time.
Start here
The cornerstone guide — the whole workflow end to end. Everything after it goes deeper into one part of it.
Step 1 Introduction to Rasterio: Reading Raster Data in Python rasterio python tutorial Begin the path →The full path, in order
14 guides: the concepts underneath the work, then each task, then the errors that task produces. Work down, or jump to the step you need.
- The Raster Data Model Explained: Bands, dtype, NoData and the Transform raster data model python 🧭 Concept
- Raster Resampling Explained: Nearest, Bilinear and When Each Is Wrong raster resampling methods 🧭 Concept
- How to Reproject a Raster in Python with Rasterio reproject raster rasterio ⚙️ How-To
- How to Clip a Raster to a Polygon in Python clip raster to polygon python ⚙️ How-To
- How to Merge and Mosaic Rasters in Python with Rasterio merge rasters rasterio mosaic ⚙️ How-To
- How to Extract Raster Values at Point Locations with Rasterio extract raster values rasterio ⚙️ How-To
- How to Calculate Zonal Statistics in Python zonal statistics python ⚙️ How-To
- How to Rasterize a Vector Layer in Python rasterize vector python ⚙️ How-To
- How to Convert a Raster to a Vector in Python raster to vector python ⚙️ How-To
- RasterioIOError: Not Recognized as a Supported File Format (How to Fix) rasterioioerror supported file format 🔧 Fix
- Rasterio Returns the Wrong Values: NoData, Scaling and dtype Fixes rasterio nodata wrong values 🔧 Fix
- Raster and Vector Do Not Line Up in Python: How to Fix It raster vector not aligned python 🔧 Fix
- Rasterio Output GeoTIFF Is Black or Empty: How to Fix It rasterio output black empty 🔧 Fix
Topics this path covers
A path is a route; a topic is everything the site has on a subject. Open a topic to see the guides this path skips.