API Reference
This section contains the complete API documentation for the eii package.
Client vs Compute
Use the client workflow when you want fast access to pre-computed global layers. Use the compute workflow when you need alternative aggregation methods or custom inputs.
| Workflow | When to use | Key functions | Dependencies |
|---|---|---|---|
| Client (precomputed) | Most users; quick stats and raster downloads | get_stats, get_raster, get_layers |
ecosystem-integrity-index[client] |
| Compute (on-the-fly) | Custom aggregation or recalculation for an AOI | calculate_eii, calculate_functional_integrity |
ecosystem-integrity-index[compute] |
| Training | Model development and validation | train_npp_model, validate_model |
ecosystem-integrity-index[training] |
Modules
eii.client
Client interface for EII data access from Google Earth Engine.
get_stats()- Extract EII statistics for a geometryget_raster()- Download EII raster for a geometryget_layers()- Get EII and/or integrity component layers as ee.ImageASSETS- Asset paths and metadata
eii.client.analysis
Analysis utilities for EII data.
get_zonal_stats()- Zonal statistics for feature collectionscompare_methods()- Compare different aggregation methods
eii.compute
Core computation utilities for on-the-fly EII.
calculate_eii()- Compute EII from component layerscalculate_functional_integrity()- NPP-based functional integritycalculate_structural_integrity()- Structural integrity (core area)calculate_compositional_integrity()- Compositional integrity (BII)
eii.training
Model training utilities for advanced users.