Get an array specified by a control record from the text lines analyzed in a RMT3DMS rmt_read_* function

rmti_parse_array(
  remaining_lines,
  nrow,
  ncol,
  nlay,
  ndim,
  skip_header = FALSE,
  nam = NULL,
  precision = "single",
  file = NULL,
  integer = FALSE,
  ...
)

Arguments

remaining_lines

lines to read the array from

nrow

number of rows in the array

ncol

number of columns in the array

nlay

number of layers in the array that should be read

ndim

dimensions of the array to read; either 1, 2 or 3. Denotes the if the returned array should be 1D, 2D or 3D.

skip_header

optional; should the control record be skipped

nam

a RMT3DMS nam object. Required when reading external arrays

precision

character: either 'single' (default) or 'double'. Denotes the precision of binary files

file

pathname to the input file which is currently being read. Required when reading fixed-format or MODFLOW-style OPEN/CLOSE arrays

integer

logical; does the binary array hold integer values. Might not work optimally.

...

ignored

Value

A list containing the array and the remaining text of the MT3DMS input file