feat: Add livestock census data processing pipeline#814
Open
neha222222 wants to merge 2 commits intocore-stack-org:mainfrom
Open
feat: Add livestock census data processing pipeline#814neha222222 wants to merge 2 commits intocore-stack-org:mainfrom
neha222222 wants to merge 2 commits intocore-stack-org:mainfrom
Conversation
Implements village-level livestock census data pipeline for issue core-stack-org#222: - data_loader.py: Downloads and parses 20th Livestock Census (DAHD) xlsx with all 4 sheets (Rural/Urban, Male/Female), normalizes columns, and aggregates male+female counts per village - village_matcher.py: Fuzzy matches livestock census village names to CoRE Stack village boundaries using exact + Levenshtein distance matching. Reports match stats per state. - pipeline.py: End-to-end CLI pipeline that downloads data, aggregates, matches to boundaries, and exports CSV with match statistics. Data source: DAHD 20th Livestock Census (VillageAndWardLevelDataMale-Female.xlsx)
2 tasks
Adds gee_export.py that completes the pipeline: - Joins matched livestock data with village boundary geometries - Ensures EPSG:4326 CRS and valid geometry - Converts enriched GeoDataFrame to ee.FeatureCollection - Publishes as Earth Engine vector asset with livestock attributes - Syncs to GeoServer and saves layer metadata to DB - Supports filtering/aggregation by livestock type in GEE Also supports GeoJSON export for local validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements village-level livestock census data pipeline for issue #222:
data_loader.py: Downloads and parses 20th Livestock Census (DAHD) xlsx with all 4 sheets (Rural/Urban, Male/Female), normalizes columns, and aggregates male+female counts per village
village_matcher.py: Fuzzy matches livestock census village names to CoRE Stack village boundaries using exact + Levenshtein distance matching. Reports match stats per state.
pipeline.py: End-to-end CLI pipeline that downloads data, aggregates, matches to boundaries, and exports CSV with match statistics.
Data source: DAHD 20th Livestock Census
(VillageAndWardLevelDataMale-Female.xlsx)