<img src="https://github.com/NOAA-OWP/ras2fim/blob/main/doc/ras2fim_logo_20211018.png" align="right" alt="ras2fim logo" width="160" height="160">
Description: Starting with geospatially attributed one-dimensional HEC-RAS floodplain models, these scripts are used to create a library of flood depth inundation rasters for a range of storm water discharges (flow). HEC-RAS models are cut to roughly match the limits of the National Water Model's {NWM} stream designations (hydrofabric). For each matching NWM stream, a synthetic rating curve is created based on 'reach averaged' flood depths as determined from the HEC-RAS simulations. The intent it to create a library of flood depth inundation grids with a ccorresponding rating curve that can be paired with the National Water Model's discharges determination and forecasting to create real-time and predictive floodplain mapping from a detailed HEC-RAS 1-D model.
RAS2FIM Wiki: More detail regarding RAS2FIM is located on the project's Wiki page.
Overview:
While ras2fim.py and other tools have optional parameters allowing pathing to any folder(s), we do recommended folder structure as shown below based on your c:
drive.
All documentation in this repo are based on the default folder structure.
There are folders and files that will need to be downloaded locally prior to running the RAS2FIM code. This data can be found in an Amazon S3 Bucket hosted by Earth Science Information Partners (ESIP). The data can be accessed using the AWS Command Line Interface (CLI) tools. Please contact Carson Pruitt (carson.pruitt@noaa.gov) or Fernando Salas (fernando.salas@noaa.gov) if you experience issues with permissions.
AWS Region: US East (N. Virginia) us-east-1
Before attempting to download, you will need ESIP AWS cli credentials (Access key ID and Secret Access Key). You do not have to have your own AWS account. Please contact Carson Pruitt (carson.pruitt@noaa.gov) or Fernando Salas (fernando.salas@noaa.gov).
Once you get AWS credentials, open your terminal window and type:
aws configure --profile esip
It will ask you for the Access key ID, Secret Access Key, Region and default language (just hit tab for that entry).
With the keys in place, you can test your credentials get a list folders prior to download as well as execute other S3 cli commands:
aws s3 ls s3://noaa-nws-owp-fim/ras2fim --profile esip
In the s3 bucket are two groupings of data.
c:
, as per image above. This will allow you to run the ras2fim.py
script with minimum arguments. It has a small sample of OWP_ras_models to allow for testing. This site does not talk about how to create OWP_ras_models but information can be found at the RRASSLER tools repo. To get all of the sample specific data please run:
aws s3 sync s3://noaa-nws-owp-fim/ras2fim/sample/ C:\ras2fim_data\ --profile esip
It is also encourage to download the default folder structure c:\ras2fim_data\
(as per image above). It is fine to downloading the sample
and data
S3 folders into the default. The full data
S3 folder can be very large, so it is recommended to pick just key inputs and respective HUCs instead of the entire folder.
The inputs folder, from either sample
or data
, includes the following files / folders listed below. Some files are shared for all ras2fim.py
processing. Others require HUC8 specific files in key locations.
ras2fim.py
has optional arguments to path to this file in any location if you do not choose the default location. Note: The S3 "sample" folders already include the 12090301 DEM.
tools/acquire_and_preprocess_3dep_dems.py
. Include the argument of -skips3
so it does not attempt to upload it to an S3 bucket unless you have your own. At this point, ras2fim.py
needs a file named OWP_ras_models_catalog_{HUC8 Number}.csv
, and we have loaded OWP_ras_models\OWP_ras_models_12090301.csv
for you in the S3 samples folder. It has some meta data that is used in the final output files. The file must have records that match models being processed. For the 'model_id' add any unique numbers you like. Please include it and also add the -mc
argument to ras2fim.py
. eg. -mc c:\ras2fim_data\OWP_ras_models\OWP_ras_models_catalog_{the huc8 number}.csv
(or pathing of your choice of course, as is with most arguments). It is fine if the catalog has extra files as long as it has records to match the model folders names.
If you like to setup your environment and run some sample tests, see the INSTALL.md page.
Details coming soon.
Please see the issue tracker on GitHub and the Ras2Fim Wiki for known issues and getting help.
NOAA's National Water Center welcomes anyone to contribute to the RAS2FIM repository to improve flood inundation mapping capabilities. Please contact Carson Pruitt (carson.pruitt@noaa.gov) or Fernando Salas (fernando.salas@noaa.gov) to get started.
Special Thanks to: Cam Ackerman (US Army Corp of Engineers), Kristine Blickenstaff (US Geological Survey), Chris Goodell (Kleinschmidt Associates), Witold Krajewski (Iowa Flood Center), RoseMarie Klee (Texas Department of Transportation), David Maidment (University of Texas), Saul Nuccitelli (Texas Water Development Board), Paola Passalacqua (University of Texas), Jason Stocker (US Geological Survey), Justin Terry (Harris County Flood Control District)