Write MT3DMS array Internal function used in the rmt_write_* functions for writing array datasets

rmti_write_array(
  array,
  file,
  mf_style = FALSE,
  format = "free",
  cnstnt = 1,
  iprn = -1,
  append = TRUE,
  ...
)

Arguments

array

array to write

file

pathname to the file to write the array to

mf_style

logical, should MODFLOW-style array headers be used (i.e. INTERNAL, EXTERNAL, OPEN/CLOSE, ...) ? Defaults to FALSE

format

either 'free' (iread = 103, i.e. FORTRAN free format) or 'fixed' (iread = 100 using FORTRAN format 10G11.4). In both cases, iread = 0 when the array only contains 1 unique value. Defaults to 'free'.

cnstnt

numeric constant to add to the array header which acts as a multiplier for the array values in MODFLOW. Default to 1

iprn

iprn code to add to array header. Defaults to -1

append

logical; should array be appended to the file. Defaults to TRUE

...

passed to RMODFLOW:::rmfi_write_array when mf_style is TRUE