Skip to main content

HESTIA Data Validation

Pipeline Status Coverage Report Documentation Status

Install

pip install hestia_earth_validation

Usage

from hestia_earth.validation.preload_requests import enable_preload
from hestia_earth.validation import validate

# enable request preloading
enable_preload()
# for each node, this will return a list containing all the errors/warnings (empty list if no errors/warnings)
errors = validate(nodes)

# to follow a long validation, pass a callback receiving the number of Nodes validated so far and the total
errors = validate(nodes, on_progress=lambda done, total: print(f"{done}/{total}"))

Note: if you want to validate existing data (with @type and @id fields), please set the following environment variable:

VALIDATE_EXISTING_NODES=true

Spatial validation

Some validations need geospatial data: whether a Site's coordinates fall inside the country or region it declares, how far outside they are, whether the region is small enough for the models to gap-fill, and whether the declared siteType matches the MODIS land cover there.

There are two ways to provide it, and either is enough:

# 1. the HESTIA Caching API, if it holds the land cover and GADM assets
VALIDATION_CACHING_API_URL=https://<host>/api
VALIDATION_CACHING_API_KEY=<token>

# 2. Earth Engine, which needs an account and credentials
pip install "hestia-earth-validation[spatial]"

The Caching API is preferred when it can answer, and anything it has no asset for still goes to Earth Engine — so the two combine rather than compete. MODELS_CACHING_API_* is read as a fallback for the variables above, which is what most deployments already set. A request that gets no answer within VALIDATION_CACHING_API_TIMEOUT_SECONDS (60) is treated as the API being unreachable.

Set VALIDATE_SPATIAL=false to skip these validations entirely. Without either backend they are skipped anyway, with an error in the log: validating coordinates against data nobody can fetch would report every Site as being outside its own country.

Metadata

Release files for hestia-earth-validation 0.41.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hestia-earth-validation 0.41.24
File Size Uploaded Provenance Actions
hestia_earth_validation-0.41.24.tar.gz 92.3 kB Without provenance Details for hestia_earth_validation-0.41.24.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hestia-earth-validation 0.41.24
File Interpreter ABI Platform Actions
hestia_earth_validation-0.41.24-py3-none-any.whl Python 3 none any Details for hestia_earth_validation-0.41.24-py3-none-any.whl

Total release size: 197.1 kB

Release files / hestia_earth_validation-0.41.24.tar.gz

Download URL hestia_earth_validation-0.41.24.tar.gz
Size 92.3 kB
Tags Source
SHA-256 checksum
How to use checksums
995cb9b7d94d6a20cfc1624d52e562a6970e668c5faee3810f70af2ae311e180
BLAKE2b-256 checksum
How to use checksums
147e95b2e17eac7b86f08a3439ab650d81b1f8f63aac89e264f3e46153c95ed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / hestia_earth_validation-0.41.24-py3-none-any.whl

Download URL hestia_earth_validation-0.41.24-py3-none-any.whl
Size 104.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f078a89f1af09f8c0bc0a20167da9569f75f81aadc521b00719d1eda1d724bd
BLAKE2b-256 checksum
How to use checksums
358521e9a53dd35d450954959390c88b2f1c11d06d14acc43e05e425de773ac0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for hestia-earth-validation 0.41.24

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.41.24 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page