ReadDeck: Read in in data deck

Description Usage Arguments Details Value

View source: R/01_preparing.R

Description

This function reads selected data from a data deck into R

Usage

1
ReadDeck(deckname = NULL, props = c("PORO"))

Arguments

deckname

The full path to, and name of, a simulation deck. There is no default, and the function will fail without an input deck.

props

is a list of the names of the properties that one wishes to retrieve.

Details

The current version of this function is very simple, and will read only a very limited selection of grid data. It does not understand windows of data or multiple occurances of a keyword, and return values are unpredictable in these cases. It will follow up INCLUDE files and expand multiple values expressed with an intermediate "*". It expects the number of cell values found to be equal to the product of the DIMENS values.

Value

Returns a data frame with the desired data.


gerwathome/runOPM documentation built on May 20, 2019, 4:05 p.m.