-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task/tpi summarize hfi #3800
Task/tpi summarize hfi #3800
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3800 +/- ##
==========================================
- Coverage 79.59% 79.31% -0.29%
==========================================
Files 294 295 +1
Lines 10823 10874 +51
Branches 518 518
==========================================
+ Hits 8615 8625 +10
- Misses 2064 2105 +41
Partials 144 144 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm loving the abstraction of opening rasters in geospatial.py
. It's a great idea!
Co-authored-by: dgboss <darren.boss@gov.bc.ca>
Naming and abstraction boundaries could be improved I think, but short of recreating |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested it locally but it looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice re-work! Just a few comments/thoughts.
Quality Gate passedIssues Measures |
Co-authored-by: dgboss <darren.boss@gov.bc.ca> Test suite for geospatial functions introduced in #3800
Co-authored-by: dgboss <darren.boss@gov.bc.ca> Summarizes advisory area based on TPI. Uses the snow-masked pmtiles hfi layer for the given date to mask contributing TPI pixels. After finding out the initial implementation uses up to 20GB of memory, commit ab72307 and onwards introduce a more memory optimized implementation. Basically all datasets are loaded from S3, but data is only read in and transformed a chunk at a time. This implementation stays under 4.5GB of memory usage.
Co-authored-by: dgboss <darren.boss@gov.bc.ca> Test suite for geospatial functions introduced in #3800
Co-authored-by: dgboss <darren.boss@gov.bc.ca> Summarizes advisory area based on TPI. Uses the snow-masked pmtiles hfi layer for the given date to mask contributing TPI pixels. After finding out the initial implementation uses up to 20GB of memory, commit bcgov@ab72307 and onwards introduce a more memory optimized implementation. Basically all datasets are loaded from S3, but data is only read in and transformed a chunk at a time. This implementation stays under 4.5GB of memory usage.
Co-authored-by: dgboss <darren.boss@gov.bc.ca> Test suite for geospatial functions introduced in bcgov#3800
Summarizes advisory area based on TPI. Uses the snow-masked pmtiles hfi layer for the given date to mask contributing TPI pixels.
After finding out the initial implementation uses up to 20GB of memory, commit ab72307 and onwards introduce a more memory optimized implementation. Basically all datasets are loaded from S3, but data is only read in and transformed a chunk at a time. This implementation stays under 4.5GB of memory usage.
Test Links:
Landing Page
MoreCast
Percentile Calculator
C-Haines
FireBat
FireBat bookmark
Auto Spatial Advisory (ASA)
HFI Calculator