Skip to content

[5pt] PR: Flood Watch #1506

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

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
Open

[5pt] PR: Flood Watch #1506

wants to merge 12 commits into from

Conversation

ZahraGhahremani
Copy link
Contributor

@ZahraGhahremani ZahraGhahremani commented Apr 29, 2025

This PR implements FIM in support of Flood Watch operations. It calculates the ratio of surface areas between the National Blend of Models (NBM) and the National Retrospective Probability (NRP) and leverages multiple layers to compute flood impact densities. It generates detailed layers for impacted buildings, land use classifications, and critical infrastructure.

Additions

tools/flood_watch_ratio.py: Calculates flood watch ratio for an event.
tools/flood_watch_layers.py: Generates different layers for flood watch.

Changes

src/bash_variables.env : Added new inputs.
There are three new input files for this PR. 1- Annual_NLCD_LndCov_2023_CU_C1V0.tif, 2- catchment_to_huc12.csv , and 3- huc12_landuse.parquet.

Testing

Generated flood watch layers for 2025/04/02 event.

Deployment Plan (For developer use)

How does the changes affect the product?

  • Code only?
  • If applicable, has a deployment plan be created with the deployment person/team?
  • Require new or adjusted data inputs? Does it have start, end and duration code (in UTC)?
  • If new or updated data sets, has the FIM code been updated and tested with the new/adjusted data (subset is fine, but must be a subset of the new data)?
  • Require new pre-clip set?
  • Has new or updated python packages?

The three inputs of (inputs\flood-watch), Annual_NLCD_LndCov_2023_CU_C1V0.tif, catchment_to_huc12.csv and huc12_landuse.parquet are now copied to all enviros.

Issuer Checklist (For developer use)

You may update this checklist before and/or after creating the PR. If you're unsure about any of them, please ask, we're here to help! These items are what we are going to look for before merging your code.

  • Informative and human-readable title, using the format: [_pt] PR: <description>
  • Links are provided if this PR resolves an issue, or depends on another other PR
  • If submitting a PR to the dev branch (the default branch), you have a descriptive Feature Branch name using the format: dev-<description-of-change> (e.g. dev-revise-levee-masking)
  • Changes are limited to a single goal (no scope creep)
  • The feature branch you're submitting as a PR is up to date (merged) with the latest dev branch
  • pre-commit hooks were run locally
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • CHANGELOG updated with template version number, e.g. 4.x.x.x
  • Add yourself as an assignee in the PR as well as the FIM Technical Lead

Merge Checklist (For Technical Lead use only)

  • Update CHANGELOG with latest version number and merge date
  • Update the Citation.cff file to reflect the latest version number in the CHANGELOG
  • If applicable, update README with major alterations

@ZahraGhahremani ZahraGhahremani added the Epic Agile epic. Subtasks are itemized and listed with check boxes, and individual cards/stories are made label May 8, 2025
@ZahraGhahremani ZahraGhahremani linked an issue May 8, 2025 that may be closed by this pull request
@ZahraGhahremani ZahraGhahremani changed the title Flood Watch [5pt] PR: Flood Watch May 23, 2025
@ZahraGhahremani ZahraGhahremani marked this pull request as ready for review May 23, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Agile epic. Subtasks are itemized and listed with check boxes, and individual cards/stories are made
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EPIC] Flood Watch Workflow
2 participants