Every geospatial team has the same problem. The analysis works in a notebook, on one machine, with paths hard-coded to someone's home directory and a dependency installed by hand eighteen months ago. Moving it into a container that runs on a schedule is a different job from writing it, and it is the job nobody budgets for.
What This Library Is
Not an analysis library. An integration one, its job is to make the analysis library usable somewhere other than the laptop it was written on.
| Concern | What it handles |
|---|---|
| Path management | Finding the analysis package whether side-by-side locally or installed in a container |
| Import strategy | Degrading gracefully when an optional dependency is absent |
| Configuration | Environment-driven rather than hard-coded |
| Eligibility mode | A defined entry point for the land-eligibility workflow |
| Hansen GFC access | Wrapped access to the global forest change dataset |
The first two rows are most of the value and sound like nothing. They are the difference between a pipeline that runs unattended and one that needs an analyst present.
Why Optional Dependencies Matter
The library is built to work with or without the full analysis stack present.
That sounds like over-engineering until you deploy. A container running only the eligibility workflow should not need every dependency the full research environment carries, and a geospatial stack is heavy — pulling all of it into every image makes builds slow and surfaces conflicts unrelated to the task.
Degrading gracefully, with a clear message naming the missing package and how to install it, is more useful than either crashing on import or silently skipping the computation. Silent skipping is the genuinely dangerous one: a pipeline that produces output without having run the analysis.
The Eligibility Workflow
One entry point, one config object, one reproducible run:
from forestry_carbon_arr import ForestryCarbonARR
forestry = ForestryCarbonARR()
if not forestry.gee_forestry_available:
raise SystemExit("GEE_notebook_Forestry not on the path")
config = {
"AOI_path": "./00_input/project_boundary.shp",
"OID_field_name": "id",
"input_training": "./00_input/training_points.shp",
"I_satellite": "Sentinel", # Sentinel | Landsat | Planet
"date_start_end": ["2024-1-1", "2024-5-31"],
"cloud_cover_threshold": 60,
"crs_input": "EPSG:4326",
"algo_ml_selected": "gbm", # rf | svm | gbm | cart
"fcd_selected": 21,
"high_forest": 65,
}
result = forestry.run_eligibility(config)Everything that varies between projects is in the dictionary. Nothing is hard-coded, which is what makes the run reproducible from a stored config years later.
Land eligibility is the question this stack was built to answer: was this area non-forest at the relevant cut-off date, and can that be shown?
Answering it reproducibly requires the Hansen loss layer, canopy density analysis, the project boundary geometry, and the methodology's forest definition — combined the same way every time, with the result traceable to its inputs.
That reproducibility is the point. An eligibility determination is an evidentiary claim in a project document, and one produced by a scripted workflow can be re-run years later against the same inputs. One produced by an analyst clicking through a desktop GIS cannot.
The Broader Argument
Research code and production code have different obligations. Research code must be correct and is allowed to be fragile. Production code must be correct, reproducible, and runnable by someone who did not write it.
Carbon MRV needs the second, because its outputs are audited years after they are produced, frequently by people with no access to the original analyst. A number that cannot be regenerated is a number that cannot be defended.
The integration layer is where that property gets added, and it is consistently the least interesting and most load-bearing part of a geospatial stack.
Check the land before you commit
Eligibility turns on land history and forest cover at a cut-off date. TREEO Eligibility runs satellite-based forest cover detection on your area of interest, before a single seed goes into the ground.

