Skip to content

Fix RRFS natlev domain default to 'na' - #520

Merged
blaylockbk merged 1 commit into
blaylockbk:mainfrom
jacob1299:fix/rrfs-natlev-domain
Apr 1, 2026
Merged

Fix RRFS natlev domain default to 'na'#520
blaylockbk merged 1 commit into
blaylockbk:mainfrom
jacob1299:fix/rrfs-natlev-domain

Conversation

@jacob1299

@jacob1299 jacob1299 commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Force domain="na" when product="natlev" (or "nat") since natlev files only exist with the na domain on S3
  • Previously, omitting domain defaulted to "conus", producing a URL for a non-existent file
  • Added RRFS template tests covering natlev domain forcing, product shorthand normalization, and all domain mappings

Fixes #514

Test plan

  • pytest tests/test_rrfs.py -v — 10 tests pass
  • Verified natlev files only exist with na domain on S3
  • Confirmed non-natlev products are unaffected

@blaylockbk
blaylockbk merged commit 23040b2 into blaylockbk:main Apr 1, 2026
11 checks passed
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.

Potential bug? Herbie produced wrong source URL for recent RRFS data files

2 participants