A collection of Mapbiomas imagery as COGs with overviews
README.md in this directory is generated by portolan readme and lists the
files. This file explains what each one is and how to rebuild the catalog from
the raw MapBiomas country exports. It is hand-written and not regenerated.
portolan add regenerates collection.json, the item JSONs and versions.json
from scratch, so everything after it must be re-run after any add or the
corrections are lost.
The raw country GeoTIFFs themselves. They were exported per country and year
from the MapBiomas platform (mapbiomas.org), which is the authoritative source
and the place to get newer collections. make_cogs.py reads them from SRC_DIR
at the top of the file — point that at your own copy.
make_thumbnails.py | Renders one thumbnail per collection from the COG's own overviews and embedded colour table, and registers it as a STAC collection asset. |
fix_versions_freshness.py | Clears a portolan check false positive: portolan add and the freshness reader disagree on the field names in versions.json, so every raster reports STALE right after a successful add. Writes the real current values under the names the reader expects. |
register_extra_assets.py | Registers thumbnail.png in each collection's versions.json and turns this provenance/ directory into a real Portolan collection, so portolan push ships the thumbnails and these files instead of leaving them behind. |