Skip to content

Refactor Pipeline-Flow: Aggregate administrative levels by shapefiles#97

Open
rohansaw wants to merge 2 commits intodevelopfrom
feature/shapefile-aggregation-refactor
Open

Refactor Pipeline-Flow: Aggregate administrative levels by shapefiles#97
rohansaw wants to merge 2 commits intodevelopfrom
feature/shapefile-aggregation-refactor

Conversation

@rohansaw
Copy link
Copy Markdown
Collaborator

@rohansaw rohansaw commented Apr 9, 2026

Summary
This PR introduces the functionality to provide a variable number of shapefiles/geojsons for aggregating the pixel level results at different administrative units.

The setup-wizard now provides a field for uploading these aggregation-level shapefiles.
Once the simulation-level results are computed, these are scaled to pixel level results based on the regional conversion factor. The pixel level results per simulation region are then merged into a global map of the complete study region, which is re-projected to equal area as defined by the user.

The pipeline internally uses exact-extract to then compute zonal statistics per geometry in the each admin-level shapefile and saves the results in the form that is expected by our downstream jobs.

Discussion
While this adds some computational overhead to the previous version in which we computed weighted means from already aggregated regions, this implementation significantly simplifies the flow for the end-user and allows specifying overlapping areas / non-complete areas.

rohansaw and others added 2 commits March 31, 2026 12:24
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.

1 participant