Skip to content

Comments

feat: Update eBird queries for multi-resolution region pack schema#20

Merged
mverteuil merged 2 commits intomainfrom
region-packs-redux
Feb 9, 2026
Merged

feat: Update eBird queries for multi-resolution region pack schema#20
mverteuil merged 2 commits intomainfrom
region-packs-redux

Conversation

@mverteuil
Copy link
Owner

@mverteuil mverteuil commented Feb 7, 2026

Summary

  • Support updated region pack schema from ebd-pack-builder with multi-resolution data storage
  • Query parent cells at resolutions 4 and 2 for fallback when resolution-5 data is sparse
  • Prefer finest resolution data, then closest distance for neighbor matches
  • Remove quarterly/yearly frequency tables (now use monthly + yearly_frequency field)
  • Resolution penalties are baked into confidence_boost at build time

The new schema reduces storage by ~60% while maintaining accuracy through intelligent multi-resolution fallback.

Test plan

  • All 46 eBird-related tests pass locally
  • Pre-commit hooks pass (ruff, pyright, semgrep, ast-grep)
  • CI passes

Support the updated region pack schema from ebd-pack-builder:
- Add resolution column to grid_species and grid_species_monthly tables
- Query parent cells at resolutions 4 and 2 for fallback when res-5 data sparse
- Prefer finest resolution data, then closest distance for neighbor matches
- Remove quarterly/yearly frequency tables (now use monthly + yearly_frequency)
- Resolution penalties are now baked into confidence_boost at build time

The new schema reduces storage by ~60% while maintaining accuracy through
intelligent multi-resolution fallback.
The region pack registry now uses region codes like 'na-east-054' instead
of descriptive names like 'north-america-great-lakes'.
@mverteuil mverteuil merged commit 84df759 into main Feb 9, 2026
3 checks passed
@mverteuil mverteuil deleted the region-packs-redux branch February 9, 2026 23:51
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