Convert a huf to a lpf object
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, ... )
| huf |
|
|---|---|
| dis |
|
| mask | masking 3d array for averaging |
| vka | character indicating what variable the VKA array in the resulting lpf object represents. Possible values are |
| averaging | named character vector of weighted averaging to use in |
| pval | optional |
| ... | arguments passed to |
a RMODFLOW lpf object
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.