Skip to content

Rebuild CUSP

The rebuild path starts from the repository root and the cusp conda environment.

conda activate cusp
python -m cusp.build
python -m cusp.qc validate-observations

That rebuilds and validates the canonical observation table in data/. The build and QA commands both enforce the machine-readable frozen schema in cusp/canonical_observation_schema.json.

Validate the maintained source-processing metadata without modifying it:

python -m cusp.generate_process_script_metadata --check --strict

Check mode fails if PROCESS_SCRIPT_METADATA.csv is stale and never rewrites the file.

Optional Derived Workflows

Aggregation is reproducible but not part of the official versioned release bundle:

python -m cusp.aggregate
python -m cusp.qc validate-aggregated

Feature sampling requires Google Earth Engine authentication and a project your account can use:

earthengine authenticate
read -r -p "Google Cloud / Earth Engine project ID: " CUSP_GEE_PROJECT
python -m cusp.features \
  --input exports/latest/cusp_v1.3.csv \
  --output runs/examples/cusp_v1.3_features.csv \
  --manifest runs/examples/cusp_v1.3_features_manifest.json \
  --gee-project "$CUSP_GEE_PROJECT" \
  --resume

Release Gate

The release gate runs the main checks in one place:

python -m cusp.release_gate --version 1.2 --skip-feature-export --skip-gee-smoke

The official data bundle does not include an environmental feature table, so the release gate skips both feature export and the live Earth Engine smoke test. Feature sampling remains available as an optional derived workflow.

Reproducibility Notes

The release build is reproducible from the processed source tables committed to the repository. Re-creating every processed source table from its earliest raw input is a different scope: some processors require manual steps, files that are too large for GitHub, or external services and data. Those requirements are recorded per source in PROCESS_SCRIPT_METADATA.csv and are described in External data sources.

For exact historical bytes, checksums, and citations, use the complete snapshot under exports/archived/vX.Y/. Rebuilding from the current source tree creates the current dataset state, not an earlier release.