parse_MF_FW_ELMT: Parse the elements of a line of a fixed width MODFLOW file

Description Usage Arguments Examples

Description

This function is used for extracting individual elements of a single line from a fixed width MODFLOW file It is being used as a utility function for the other MFtools functions

Usage

1
parse_MF_FW_ELMT(LINE = inline, ELEMENT = 1)

Arguments

LINE

this is the individual fixed width MODFLOW file line

ELEMENT

this is the integer number of the element the user wishes to select from the MODFLOW fixed width file

Examples

1
2
3
4
5
6
7
infl <- paste0(rootname, ".dis")
linin <- read_lines(infl) %>% .[-grep("#", .)]              # READ IN DIS FILE BUT REMOVE COMMENTED LINES
                                                            # THIS IS IN PREPARATION FOR MODFLOW 6
indx <- 1
NLAY <- linin[indx] %>% parse_MF_FW_ELMT(1) %>% as.integer()
NLAY
[1] 15

dpphat/MFtools documentation built on May 15, 2019, 1:47 p.m.