Learn R Programming

FloodMapper (version 1.0)

FM.readDEM: Load Digital Elevation Model (DEM)

Description

After a model run is initiated, this function should be first executed to load DEM raster.

Usage

FM.readDEM(demfile, waterdepth = 0, waterdepthfile = "", rerun = FALSE)

Arguments

demfile

full file path of the DEM raster.

waterdepth

(OPTIONAL) a number represents initial surface water depth (unit: m) to be applied to all grid cells.

waterdepthfile

(OPTIONAL) full file path of the initial surface water depth raster (unit: m). If a raster file is specified, the model will use this raster to initialize the surface water depth.

rerun

OPTIONAL, assign TRUE if this is a rerun.

Examples

Run this code
# NOT RUN {
## Load FloodMapper package
library(FloodMapper)

## Refer to Step 2 in the sample code of FM.start():
## Step 2. Load the 1000km DEM raster for Lafayette Parish, 
##         LA, USA from the sample dataset.
# }

Run the code above in your browser using DataLab