ras2fim_sample

HowTo: Run RAS2FIM over sample data

If you need sample data, see the closing steps outlined in installing RAS2FIM.

While there are “smart defaults” in place for both versions of the program used for OWP’s use case in scaling the system for a nation, you are free (and probably should) manually populate all of them if you are running this locally. You also control runtime options using the ras2fim\config\r2f_config.env file.

Note that the catalog needs to have this particular naming convention

V1

  • python ras2fim.py -w 12090301 -p EPSG:2277 -sc ble -o "G:\data\output\r2fv1" -r "C:\Program Files (x86)\HEC\HEC-RAS\6.3" -i "G:\data\output\input\models" -n "ras2fim\X-National_Datasets" -t "3dep_dems\10m_5070\HUC6_120903_dem.tif" -mc "G:\data\output\input\OWP_ras_models_catalog_12090301.csv"

V2

  • python ras2fim.py -w 12090301 -p EPSG:2277 -sc ble -o "G:\data\output\r2fv2" -r "C:\Program Files (x86)\HEC\HEC-RAS\6.3" -i "G:\data\output\input\models" -n "ras2fim\X-National_Datasets" -t "3dep_dems\10m_5070\HUC6_120903_dem.tif" -mc "G:\data\output\input\OWP_ras_models_catalog_12090301.csv"

Making the RAS2FIM catalog

Using RRASSLER, you’d run the following:

```{r}
library(data.table)
devtools::load_all()

ras_dbase <- "...ras2fim/sample_data/ras_catalog"
ras_samples_root <- ".../ras2fim/sample_data"

Iowa
RRASSLER::ingest_into_database(path_to_ras_dbase = ras_dbase,
                               top_of_dir_to_scrape = file.path(ras_samples_root,"iowa","input",fsep = .Platform$file.sep),
                               code_to_place_in_source = "IFC",proj_override = "EPSG:26915",
                               apply_vdat_trans = FALSE,is_quiet = FALSE,is_verbose = TRUE,overwrite = FALSE,parallel_proc = FALSE)

Texas
RRASSLER::ingest_into_database(path_to_ras_dbase = ras_dbase,
                               top_of_dir_to_scrape = file.path(ras_samples_root,"texas","12090301",fsep = .Platform$file.sep),
                               code_to_place_in_source = "FEMA Region 6",proj_override = "EPSG:2277",
                               apply_vdat_trans = FALSE,is_quiet = FALSE,is_verbose = TRUE,overwrite = FALSE,parallel_proc = FALSE)
RRASSLER::ingest_into_database(path_to_ras_dbase = ras_dbase,
                               top_of_dir_to_scrape = file.path(ras_samples_root,"texas","M3",fsep = .Platform$file.sep),
                               code_to_place_in_source = "M3",proj_override = "ESRI:102740",
                               apply_vdat_trans = FALSE,is_quiet = FALSE,is_verbose = TRUE,overwrite = FALSE,parallel_proc = FALSE)

Kansas
RRASSLER::ingest_into_database(path_to_ras_dbase = ras_dbase,
                               top_of_dir_to_scrape = file.path(ras_samples_root,"kansas",,fsep = .Platform$file.sep),
                               code_to_place_in_source = "KDE",proj_override = "ESRI:102678",
                               apply_vdat_trans = FALSE,is_quiet = FALSE,is_verbose = TRUE,overwrite = FALSE,parallel_proc = FALSE)

## tennessee
RRASSLER::ingest_into_database(path_to_ras_dbase = ras_dbase,
                               top_of_dir_to_scrape = file.path(ras_samples_root,"tennessee",fsep = .Platform$file.sep),
                               code_to_place_in_source = "tennessee",proj_override = "EPSG:2274",
                               apply_vdat_trans = FALSE,is_quiet = FALSE,is_verbose = TRUE,overwrite = FALSE,parallel_proc = FALSE)
```

See what these outputs look like in the RAS2FIM difference explainer.