Every carbon project developer working in Indonesia ends up writing the same Earth Engine code: pull the imagery, mask the cloud, compute the indices, classify the land cover, check the Hansen loss layer, export the result. We published ours rather than watch it be rewritten a hundred more times.
What Is In It
| Module | What it does |
|---|---|
| `fcd` | Forest Canopy Density analysis |
| `hansen` | Historical tree loss from the Hansen Global Forest Change dataset |
| `landcover` / `classifying` | Land cover classification with machine learning |
| `obia` | Object-Based Image Analysis segmentation |
| `spectral_indices` | Index computation across sensors |
| `image_collection` | Multi-satellite collection handling — Planet, Sentinel-2, Landsat |
| `topography`, `area_calc` | Terrain derivatives and area computation |
| `exporting_ee`, `arcpy`, `qgis` | Getting results out to the tools people actually use |
The last row is not an afterthought. Analysis that cannot leave Earth Engine and reach a GIS analyst's desktop does not get used, and the export path is where a lot of otherwise-good remote sensing work dies.
The modules are importable independently, you take the FCD analysis without inheriting the classification stack:
from osi.fcd import fcd_calculation
from osi.hansen import hansen_loss
from osi.area_calc import area_by_class
fcd = fcd_calculation(image_collection, aoi) # continuous canopy density
loss = hansen_loss(aoi, start_year=2000, end_year=2024)
areas = area_by_class(fcd.gt(65), aoi, crs="EPSG:4326")Why Forest Canopy Density Rather Than Just Classification
Land eligibility for ARR turns on whether an area was forest at a cut-off date, and "forest" is a threshold definition, canopy cover above some percentage, over some minimum area, with some minimum height.
A binary forest/non-forest classification answers that question only for the threshold it was trained on. Forest canopy density produces a continuous surface, so the same analysis can be re-thresholded when a methodology uses a different definition. Given how often definitions differ between methodologies, jurisdictions and reporting frameworks, the continuous product is substantially more reusable.
The Honest Limitations
It is a toolkit, not a turnkey product. It assumes you can read Python, hold an Earth Engine account, and know what you are asking the imagery.
Classification quality is a function of training data. The machine learning modules are only as good as the labelled samples fed to them, and collecting good training data in Indonesian conditions is the hard, unglamorous part that no library removes.
Cloud is still cloud. Optical analysis in the equatorial tropics is constrained by weather, as discussed elsewhere on this site. The library helps you composite around it; it does not create observations that were never made.
Why Open Source This
Two reasons, and neither is altruism.
The measurement layer of carbon projects benefits from being inspectable. A project asserting that an area was non-forest at a cut-off date is making a claim that should be checkable, and a claim produced by code anyone can read is more checkable than one produced by a proprietary pipeline.
And the competitive asset was never the code. It is the field data that calibrates and validates it — the ground plots, the local training samples, the accuracy assessments. Publishing the analysis layer and keeping the discipline of ground truth is the right way round.
Where It Fits
This is the satellite tier of a stack. It tells you where and when the canopy changed and what land cover is present. It does not tell you how much biomass is there — that requires allometry and field plots, which is what the other libraries in the stack handle.
Turn climate goals into a verified portfolio
TREEO connects the full carbon cycle, eligibility, simulation, real-time monitoring and registry-ready reporting, combining expert consulting with dMRV technology so the evidence exists before anyone asks for it.



