Learn R Programming

inlmisc (version 0.2.4)

ReadModflowBinary: Read MODFLOW Binary File

Description

This is a utility function for https://water.usgs.gov/ogw/modflow/. It reads binary output data from a model run.

Usage

ReadModflowBinary(path, data.type = c("array", "flow"), rm.totim.0 = FALSE)

Arguments

path
character. Path name of the binary file.
data.type
character. Description of how the data are saved.
rm.totim.0
logical. If true, stress-periods at time zero are removed.

Value

Returns a list object of length equal to the number of times the data type is written to the binary file. The following list components are returned:
d
matrix of data values.
kstp
time step
kper
stress period
desc
variable name
ilay
model-grid layer
delt
length of the current time step.
pertim
time in the stress period.
totim
total elapsed time

Details

This function reads binary head (.hds), drawdown (.ddn), and budget (.bud) files generated from a MODFLOW run.

See Also

SummariseBudget

Examples

Run this code
path <- system.file("extdata", "ex3D.hds", package = "inlmisc")
hds <- ReadModflowBinary(path, "array")

Run the code above in your browser using DataLab