feat: Add Grid Snapper utility for coordinate alignment#116
Open
dhruv-surti wants to merge 1 commit into
Open
Conversation
Collaborator
|
Good for initial grid snapping, however improvements can be made in the future by reading the nearest value lat/long instead of just rounding it up. Good work |
wilsnd
approved these changes
May 10, 2026
HaNGUYEN-96
approved these changes
May 12, 2026
Collaborator
HaNGUYEN-96
left a comment
There was a problem hiding this comment.
Good work! This Gid Snapper tool is very helpful!
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.
Grid Snapper Utility
Description
This PR adds the Grid Snapper utility to the data-engineering module. Grid Snapper is a core tool that converts raw GPS coordinates from different data sources (NASA FIRMS, Open-Meteo, ELVIS) into unified location_ids, enabling perfect data alignment across all observation tables.
What Problem Does This Solve
Different data sources use different coordinate systems:
-37.8147, 145.0892-37.8149, 145.0891-37.81472, 145.08923Without alignment, these coordinates cannot be joined in the database. Grid Snapper solves this by snapping all coordinates to a 0.1° grid and assigning a single
location_idto each grid cell.Changes Made
grid_snapper/grid_snapper.py- Core utility with 4-step alignment processgrid_snapper/README.md- Quick start guidegrid_snapper/__init__.py- Python package initializationgrid_snapper/docs/GRID_SNAPPER_TUTORIAL.md- Complete tutorial with examplesgrid_snapper/screenshots/- Step-by-step demo screenshotsHow It Works
Usage
All extraction pipelines (fire, weather, vegetation, topography) should use Grid Snapper:
Testing
All tests passing:
Impact
Checklist
Related
Part of FireFusion bushfire forecasting system - Deakin University Capstone