Skip to content

Snt25 518#96

Open
EstebanMontandon wants to merge 5 commits into
mainfrom
SNT25-518
Open

Snt25 518#96
EstebanMontandon wants to merge 5 commits into
mainfrom
SNT25-518

Conversation

@EstebanMontandon

Copy link
Copy Markdown
Collaborator

MAP indicators extract pipeline changes to handle period extracts:
-Includes Worldpop raster repository update (folder: data/worldpop/rasters)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the SNT MAP extracts pipeline to support extracting multiple years (start/end), adds WorldPop-based population raster download & aggregation, and refactors aggregation outputs to Polars while updating reporting utilities.

Changes:

  • Add a WorldPopClient to download country/year population rasters and generate per-ADM2 population tables.
  • Refactor the pipeline to accept year_start/year_end, loop over periods, and output year-suffixed CSV/Parquet files using Polars.
  • Update reporting utilities (R + notebook) to load parameters and plot the latest year.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
snt_map_extracts/worlpopclient.py New client for listing releases and atomically downloading WorldPop rasters
snt_map_extracts/utils.py New utilities for periods, raster alignment, zonal totals, and weighted metrics (Polars)
snt_map_extracts/pipeline.py Pipeline refactor for multiple years, WorldPop integration, Polars outputs, new helper functions
snt_map_extracts/malariaAtlasProject/map_utils.py Refactor TIFF reading to load all bands in one read and improve error details
snt_map_extracts/malariaAtlasProject/map.py Avoid re-downloading existing rasters earlier in the function flow
pipelines/snt_map_extracts/utils/snt_map_extracts_report.r New setup/config/dataset-loading helpers; add year in plot titles
pipelines/snt_map_extracts/reporting/snt_map_extracts_report.ipynb Update notebook to use new R helpers + parameters, load latest year file
.gitignore Ignore Python __pycache__/

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread snt_map_extracts/pipeline.py
Comment thread snt_map_extracts/pipeline.py
Comment thread snt_map_extracts/utils.py
Comment thread snt_map_extracts/worlpopclient.py Outdated
Comment thread snt_map_extracts/worlpopclient.py Outdated
Comment thread snt_map_extracts/pipeline.py Outdated
Comment thread snt_map_extracts/pipeline.py Outdated
Comment thread snt_map_extracts/pipeline.py
Comment thread pipelines/snt_map_extracts/reporting/snt_map_extracts_report.ipynb
Comment thread pipelines/snt_map_extracts/utils/snt_map_extracts_report.r
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