How forestdatapartnership/whisp works
Whisp is a Python geospatial analysis package: users provide plot geometries, which are checked and converted for Earth Engine analysis; dataset layers are reduced to plot statistics, formatted, and can be assessed for commodity-specific forest risk. It also documents privacy-preserving local processing and faster batched processing. The App/API are a separate repository, not part of this runtime map. Internal edges are limited to relationships shown by excerpts or the source index; unsampled implementation details are not inferred.
Main entry points: stats.py Statistics API · datasets.py Earth Engine layers · advanced_stats.py Batched statistics · reformat.py Output formatting
Components 17
Geometry Inputs
- Input checks
src/openforis_whisp/data_checks.py - Geometry conversion
src/openforis_whisp/data_conversion.py
Earth Engine Analysis
- Statistics API
src/openforis_whisp/stats.py - Earth Engine layers
src/openforis_whisp/datasets.py - Batched statistics
src/openforis_whisp/advanced_stats.py - Local statistics
src/openforis_whisp/local_stats.py - Local and core stats
src/openforis_whisp/advanced_stats.py
Results and Risk
- Output formatting
src/openforis_whisp/reformat.py - Output schemas
src/openforis_whisp/pd_schemas.py - Risk assessment
src/openforis_whisp/risk.py
Processing Support
- Runtime configuration
src/openforis_whisp/parameters/config_runtime.py - Admin lookup
src/openforis_whisp/parameters/lookup_gaul1_admin.py - Asset registry
src/openforis_whisp/asset_registry.py - Exception policy
src/openforis_whisp/control_flow.py - Logging
src/openforis_whisp/logger.py
Other components
- Package user
- Google Earth Engine
Connections 23
- Package user → Input checks: submits geometries
README.md - Package user → Statistics API: runs analysis
README.md - Statistics API → Geometry conversion: converts input
src/openforis_whisp/stats.py - Statistics API → Earth Engine layers: uses layers
src/openforis_whisp/stats.py - Earth Engine layers → Google Earth Engine: queries imagery
- Statistics API → Output formatting: formats results
src/openforis_whisp/stats.py - Batched statistics → Earth Engine layers: uses layers
src/openforis_whisp/advanced_stats.py - Batched statistics → Output formatting: formats results
src/openforis_whisp/advanced_stats.py - Batched statistics → Geometry conversion: uses conversion
src/openforis_whisp/advanced_stats.py - Local statistics → Earth Engine layers: uses layers
src/openforis_whisp/local_stats.py - Local statistics → Output formatting: formats results
src/openforis_whisp/local_stats.py - Local statistics → Google Earth Engine: downloads imagery
src/openforis_whisp/local_stats.py - Output formatting → Output schemas: uses schemas
src/openforis_whisp/reformat.py - Risk assessment → Output formatting: formats columns
src/openforis_whisp/risk.py - Risk assessment → Earth Engine layers: checks layer names
src/openforis_whisp/risk.py - Statistics API → Runtime configuration: reads settings
src/openforis_whisp/stats.py - Earth Engine layers → Runtime configuration: reads settings
src/openforis_whisp/datasets.py - Batched statistics → Admin lookup: joins admin codes
src/openforis_whisp/advanced_stats.py - Batched statistics → Logging: logs progress
src/openforis_whisp/advanced_stats.py - Local statistics → Exception policy: preserves exceptions
src/openforis_whisp/local_stats.py - Statistics API → Exception policy: preserves exceptions
src/openforis_whisp/stats.py - Package user → Asset registry: manages assets
- Statistics API → Risk assessment: assesses risk