Tutorial series · 2 parts

Cloud-native rasters in Python

Work with large rasters without downloading whole files. The series builds a validated Cloud Optimised GeoTIFF and measures how little data a range request fetches, then catalogues a set of COGs as a static STAC catalogue with pystac and compares it with public STAC APIs.

Level
Intermediate
Parts
2, all published
Reading time
About 24 minutes

Start with part 1: Cloud Optimised GeoTIFFs in Python: reproject, mosaic and validate a COG

The parts, in order

  1. Part 1 Intermediate 12 min read

    Cloud Optimised GeoTIFFs in Python: reproject, mosaic and validate a COG

    Mosaic four Copernicus DEM GLO-30 tiles straight from AWS with rasterio, reproject them to British National Grid, write a validated Cloud Optimised GeoTIFF with rio-cogeo, and measure exactly how many bytes HTTP range requests fetch.

  2. Part 2 Intermediate 12 min read

    Build a STAC catalogue in Python with pystac, rio-stac and pystac-client

    Turn 25 Cloud Optimised GeoTIFFs of Eryri into a static STAC catalogue with pystac and rio-stac, validate it against the JSON schemas, query it, serve it as static files, and compare it with the Earth Search and Planetary Computer STAC APIs through pystac-client.

All tutorial series