FM.rerun: Rerun An Existing Model

Description Usage Arguments Author(s) Examples

Description

Once a model run is completed successfully, users may want to adjust some parameters and rerun it. If this is the case, users can use this function.

Usage

1
2
3
4
FM.rerun(runname, startdatetime, enddatetime, outputinterval, 
    internaltimestep = 30, debug = TRUE, wdbreakpoints = NA,
    workdir = "", animation = FALSE, bgtype = 0,
    aerialraster = "", pdfoutput = FALSE)

Arguments

runname

refer to FM.init().

startdatetime

refer to FM.init().

enddatetime

refer to FM.init().

outputinterval

refer to FM.init().

internaltimestep

refer to FM.init().

debug

refer to FM.init().

wdbreakpoints

refer to FM.init().

workdir

refer to FM.init().

animation

refer to FM.start().

bgtype

refer to FM.start().

aerialraster

refer to FM.start().

pdfoutput

refer to FM.start().

Author(s)

Xander Wang <xiuquan.wang@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Load FloodMapper package
library(FloodMapper)

s_return <- NA

## Assume that the model run with a name of "Lafayette_1km" has been completed successfully,
## now you want to rerun this model after adjust some parameter files (under the input folder),
## you can run the following command to rerun the model.

    s_return <- FM.rerun(runname = "Lafayette_1km",
        startdatetime = "2016-08-12 10:00:00", 
        enddatetime = "2016-08-12 11:00:00", outputinterval = 3600, 
        internaltimestep = 300, wdbreakpoints = seq(0, 3000, 150),
        workdir = tempdir(), animation = TRUE, bgtype = 0,
        aerialraster = "", pdfoutput = FALSE)


## Check if there are any errors
if (!is.na(s_return)) {
    if (s_return != "") {
        cat("Model rerun is failed because of the following error:\n")
        cat(s_return)
    } else {
        cat("Model rerun is successful!\n")
    }
}

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