Skip to content
This repository was archived by the owner on Oct 6, 2026. It is now read-only.
NGWPCPublic archive
forked from NOAA-OWP/nrt-fim

About

A CNN library for generating flood inundation maps in near real-time.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

NRT-FIM CNN

icefabric

Ruff

A repo for the MVP NRT CNN Capability. This work builds on the prototype model trained on MODIS flood satellite images

Getting Started

This repo is managed through UV and can be installed through: uv venv .venv --python 3.12.0 source .venv/bin/activate uv sync # installs everything from pyproject.toml uv pip install -e . # editable install of your own package

Development

To ensure that F1-trainer code changes follow the specified structure, be sure to install the local dev dependencies and run pre-commit install

Documentation

To build the user guide documentation for F1-trainer locally, run the following commands:

uv pip install ".[docs]" mkdocs serve -a localhost:8080 Docs will be spun up at localhost:8080/

How to run:

1- Pre-processing the target data:

python -m scripts.data_prep.preprocess_modis_targets

This will: discover raw MODIS TIFFs under ${data_sources.dfo_modis_dir}/DFO_* / *.tif, (optionally) create a master grid (from precip) and pass it via --grid, generate the flood-percent + regridded TIFFs (same folder layout you had), write a manifest file listing all produced outputs (default: data/indices/modis_preprocessed.txt).

2- Build index:

python -m scripts.data_prep.make_index 

3- Write splits:

python -m scripts.data_prep.make_splits

4- Compute stats:

python -m scripts.data_prep.compute_stats

5- Train:

python -m scripts.make_train

6- Evaluation:

python -m scripts.make_eval

About

A CNN library for generating flood inundation maps in near real-time.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages