Skip to content

Add current-year LFPS support to API for LANDFIRE Fuel Models #543

Description

@lindsaywiard

Add support for requesting FCCS, FBFM13, and FBFM40's current-year LFPS release through the version field, with a region-coverage check before the grid is created.

Tasks

  • fbfm13/schema.py and fccs/schema.py: widen the version enum to include lfps_available (currently built from available only), matching the pattern already used for FBFM40's version enum.
  • fbfm13/router.py and fccs/router.py: call validate_lfps_coverage when the requested version is LFPS-only, placed the same way fbfm40/router.py already does it for seasonal requests.
  • fbfm40/schema.py: relax check_version_matches_season so an lfps_available version is legal with no season too (currently only accepted alongside a season).
  • fbfm40/router.py: widen the existing coverage-check gate to also fire for an lfps_available version with no season.
  • examples.py for all three products: add an OpenAPI example for the new current-year request.
  • Tests: extend each product's test_schema.py/test_router.py to cover the wider version enum and the coverage-check gating, following the patterns from the FBFM40 seasonal work.

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions