FM.readDEM: Load Digital Elevation Model (DEM)

Description Usage Arguments Author(s) Examples

Description

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

Usage

1
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.

Author(s)

Xander Wang <xiuquan.wang@gmail.com>

Examples

1
2
3
4
5
6
## 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.

FloodMapper documentation built on May 2, 2019, 5:08 a.m.