write.DIS: Write a discretisation (DIS) package file

Description Usage Arguments Value Examples

Description

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

Usage

1
write.DIS(DIS, filename, title)

Arguments

DIS

object of class DIS.MFpackage, as would be read by read.DIS

filename

character string; file name to write to, ideally ending in ".dis"

title

character string; optional title to put at the start of the package file

Value

NULL

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# read DIS package
fnm <- system.file("rflow_mf_demo.dis", package = "Rflow")
dis <- read.DIS(fnm)

# meaningful modification e.g. add a stress period
dis$extent["NPER"] <- dis$extent["NPER"] + 1L
dis$sps <- rbind(dis$sps,
                 list(1000, 10L, 1.2, TRUE))

# write modified dis package to file
write.DIS(dis, "RFLOW_EXAMPLE.dis", "example: added stress period")

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