Skip to content

refactor(esa-cci): remove the ESA CCI land cover datasets, now in OCS core - #29

Merged
turban merged 2 commits into
mainfrom
chore/esacci-class-in-core
Oct 22, 2026
Merged

turban merged 2 commits into
mainfrom
chore/esacci-class-in-core

Conversation

@turban

@turban turban commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

open-climate-service#477 is merged, so OCS core ships esacci_landcover_class_yearly, with its classes and colours. Both ESA CCI datasets go from here:

  • esacci_landcover_class_yearly: the same dataset id is no longer defined twice.
  • esacci_landcover_fraction_yearly: it precomputed group shares per 1 km cell at ingest. Shares per district now come from the core class dataset with aggregate_spatial_classes, at native 300 m resolution, and grouped into the same ten groups with the esacci_landcover_groups workflow (feat(processes): land cover groups with remap_classes and an ESA CCI workflow #30).

The plugin module, its templates and tests, and the README row are removed. _netcdf.py stays; other plugins use it.

Sending a per-district group share to DHIS2 still needs a change in OCS core's export: CLIM-1575.

open-climate-service#477 ships esacci_landcover_class_yearly, so the class template and plugin go
from here. The fractions dataset stays, its tests reading the classes through the shared loader.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The merged core replacement covers the removed dataset, and the focused cleanup preserves fractions behavior with no identified blocking issues.

No open issues 🎉

What changed in this PR

Removes the duplicate ESA CCI land-cover class dataset now provided by OCS core, while retaining the grouped land-cover fractions dataset.

Changes:

  • Removes the local class plugin and dataset template.
  • Updates documentation to direct per-class aggregation to OCS core.
  • Adapts tests to use the shared class loader and preserves CRS and time-axis checks in the fractions test.
File Description
tests/​test_esa_cci_lc_plugin.py Replaces class-plugin calls and retains relevant assertions.
README.md Lists only the fractions dataset and notes core ownership of the class map.
ocs_plugins/​rasters/​esa_cci_lc.yaml Removes the class template and documents core class aggregation.
ocs_plugins/​rasters/​esa_cci_lc.py Removes the class plugin while leaving fractions behavior unchanged.

Review effort: Balanced

Per-district shares come from OCS core's esacci_landcover_class_yearly with
aggregate_spatial_classes, and grouped through esacci_landcover_groups, so the ingest-time
fractions are no longer needed. Nothing ESA CCI is left in this package.
@turban turban changed the title refactor(esa-cci): leave the land cover class dataset to OCS core refactor(esa-cci): remove the ESA CCI land cover datasets, now in OCS core Oct 22, 2026
@turban
turban merged commit 0a80fdb into main Oct 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants