write.RIV: Write a river (RIV) package file

Description Usage Arguments Examples

Description

Writes information from a RIV.MFpackage list object to a MODFLOW-readable RIV package file.

Usage

1
write.RIV(RIV, filename, title, MF2k = TRUE, write.auxiliaries = TRUE)

Arguments

RIV

RIV.MFpackage object, as would be returned by read.RIV

filename

character string; file to write to

title

character string; optional title to prefix to the file, for your reference (not used if MF2k = FALSE)

MF2k

logical [1]; should the file be readable by MODFLOW 2000 and higher, or (FALSE) keep back-compatibility with MF96; in the case of the RIV package, this means no title lines

write.auxiliaries

logical [1]; whether to include any auxiliary parameters in RIV in the package file

Examples

1
2
3
4
5
fnm <- system.file("rflow_mf_demo.riv", package = "Rflow")
riv <- read.RIV(fnm, 15L, FALSE)

# write modified riv package to file
write.RIV(riv, "RFLOW_EXAMPLE.riv", "example")

CJBarry/Rflow documentation built on June 16, 2019, 12:35 p.m.