Description Usage Arguments Examples
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
1 | parse_MF_FW_ELMT(LINE = inline, ELEMENT = 1)
|
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 |
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.