Expand description
Raster datasets: district numbers and a map layer per period.
geolith dataset turns a folder of gridded rasters (CHIRPS rainfall
first) into per-district values and a PNG map layer. Its engine steps are
areas (district polygons from Overture, India cut with the Survey of
India outline), normals (per-district baseline averages), values (the
area values of one raster, cached for normals), build (numbers, map
layer and files for every period on disk), inspect (a raster’s layout
and whether each read path decodes it) and downloads (the Parquet and
GeoParquet files of a stage). The operator steps are stage (an
upload-ready tree of the object keys), verify (the checks a stage must
pass), status (the newest stage and its staleness) and keys (the keys
an upload would write, from local files).
Modules§
- accuracy
geolith dataset accuracy: GDAL as an optional external oracle.- areas
- District areas cut from Overture divisions (
geolith dataset areas). - areas_
tiles - Vector tiles of the district areas (
areas.pmtiles). - baseline
geolith dataset baseline-pass: the NDVI baseline, one file at a time.- bounds
geolith dataset bounds: the sanity gate of a staged build’s new period.- cdse
geolith dataset cdse: the NDVI dekads of the Copernicus Data Space.- cli
- The dataset subcommand surface.
- config
- Dataset config: what a raster holds and how to draw it.
- country
- A country’s dataset settings: one JSON file per country.
- coverage
- Fraction of each raster cell inside an area polygon, weighted by cell area.
- crosswalk
- The district crosswalk of a build (
geolith dataset build --crosswalk). - crosswalk_
gen - The India district crosswalk: Overture districts ↔ LGD codes.
- downloads
- Parquet and
GeoParquetdownloads of a stage. - error
- The error of every dataset step.
- exit
- Exit codes that are part of the shell contract.
- fetch
geolith dataset fetch: the sources of a dataset, resumable.- files
- The files of a dataset build (
geolith dataset build). - inputs
geolith dataset inputs: the record of what an engine build was made from, and the newest period on disk.- inspect
geolith dataset inspect: the layout of a raster and whether each read path decodes it.- keys
geolith dataset keys: the object keys an upload would write, from the local stage only (no network).- layer
- The PNG map layer of one period.
- layout
- The shared layout of a stage: settings, the public set, the data root.
- lgd
- The official LGD (Local Government Directory) lists: states and districts.
- lists
geolith dataset lists: the CHIRPS download lists of the series, the season and the baseline.- normals
- Per-district baseline normals (
geolith dataset normals). - numbers
- Per-district numbers of one period.
- official_
areas - Area boundaries from an official boundary file.
- period
- Period arithmetic:
YYYY.MM.Pkeys, the period that holds a date, and the rasters on disk. - prune
geolith dataset prune: the disk hygiene of the datasets pipeline.- rasters
- Discovery of the source rasters and the period each one covers.
- refresh
geolith dataset refresh: the unattended chain over every published pair.- remote
geolith dataset uploadandpublish: the two owner-run gates.- run
geolith dataset run: download, build and verify, then stop before upload.- s3
- An
S3client for the bucket the datasets live in (any S3-compatible store). - schedule
geolith dataset schedule: the daily refresh job, installed on the binary.- series
series.json: the classes of every area over the build’s series.- settings
- The deployment settings of
geolith dataset: one file, one struct. - slots
geolith dataset slots: the measured per-slot table the bounds gate reads.- source
- Where the cells of a dataset raster come from.
- stage
geolith dataset stage: an engine build → the upload-ready tree of object keys.- status
geolith dataset status: the state of the newest staged build.- topology
- Shared-border simplification of a polygon coverage (the district areas).
- verify
geolith dataset verify: the checks a stage must pass before an upload.
Functions§
- run
- Run the dataset step selected by
args: the deployment settings are read once (the process environment, the.envfile, then the JSON file of--configorGEOLITH_CONFIG), then the step runs.