Repository navigation
Support lfps on demand fetch for landfire canopy bands - #747
Open
lindsaywiard wants to merge 3 commits into
Open
lindsaywiard wants to merge 3 commits into
lindsaywiard wants to merge 3 commits into
Conversation
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.
LANDFIRE canopy (chm, cbd, cbh, cc) can now serve a release newer than the staged one, fetched on demand from LANDFIRE Product Service (LFPS), the same way
fbfm40/fbfm13/fccsalready do. Version 2025 is added as the first LFPS-only canopy release.Changes
lib
LANDFIRE_VERSIONS["canopy"]: staged2024, LFPS2025, default2024, with alayerslist of the four bands.lfps_acronym: a grouped product resolves through its first layer, so coverage checks forcanopylook upCHin the LFPS catalog. Coverage is judged on that one layer, since the four are published together.LFPS_ACRONYM_OVERRIDES:chm->CH.cbd,cbhandccalready upper-case to their LFPS acronyms.griddle
fetch_canopy_landfireroutes by version: a version inlfps_availableis fetched through LFPS, anything else from the staged COGs (now validated against the registry).fetch_lfpsfor a single band andfetch_lfps_multifor several. Bands are read from the result by position, and the band-order check infetch_lfps_multiguards the mapping.api
LandfireCanopyVersionis built fromLANDFIRE_VERSIONS, and the request default comes from the registry.create_landfire_canopyrunsvalidate_lfps_coveragebefore enqueuing when the version is LFPS-only.GET /domains/{domain_id}/grids/canopy/landfire/coveragelists every release newest first, with per-domain coverage and a ready-made create request.Tests