rmf_convert_huf_to_lpf: Convert a huf to a lpf object

View source: R/utils.R

rmf_convert_huf_to_lpfR Documentation

Convert a huf to a lpf object

Description

Convert a huf to a lpf object

Usage

rmf_convert_huf_to_lpf(
  huf,
  dis,
  mask = NULL,
  vka = ifelse(all(huf$hguvani == 0), "VK", "VANI"),
  averaging = c(HK = "arithmetic", HANI = "arithmetic", VK = "harmonic", VANI =
    "arithmetic", SS = "arithmetic", SY = "arithmetic"),
  pval = NULL,
  ...
)

Arguments

huf

RMODFLOW huf object

dis

RMODFLOW dis object

mask

masking 3d array for averaging rmf_convert_huf_to_grid, typically the ibound array, to speed up grid conversion; defaults to including all cells

vka

character indicating what variable the VKA array in the resulting lpf object represents. Possible values are 'VK' or 'VANI'. If all HGUVANI values are the same, the default vka is set correspondingly. If HGUVANI varies between hgu's, the default vka is 'VANI'.

averaging

named character vector of weighted averaging to use in rmf_convert_huf_to_grid. Possible values are 'arithmetic', 'harmonic' and 'geometric'. Names should correspond to the partyp defined in the huf object. Defaults to 'arithmetic' for every parameter type except for 'VK' ('harmonic').

pval

optional RMODFLOW pval object; used to overwrite huf parameter values in rmf_convert_huf_to_grid. Defaults to NULL.

...

arguments passed to rmf_create_lpf

Details

Huf parameters are converted to non-parameter data averaged over the dis grid using rmf_convert_huf_to_grid. The resulting lpf object will therefore not have any flow parameters. If HGUVANI varies per hgu, a correct conversion to a lpf vka array is not possible (i.e. because part of the layer might represent VANI from hgu A and another part VK from hgu B). Therefore, the user has to decide whether vka represents vk or vani in its entirety.

Value

a RMODFLOW lpf object

See Also

rmf_convert_huf_to_grid, rmf_create_lpf


rogiersbart/RMODFLOW documentation built on Jan. 14, 2023, 4:21 a.m.