rmf_2d_array or rmf_3d_array from multiplier arrays, zone arrays and/or parameter valuesR/utils.R
rmf_calculate_array.RdGiven a multiplier array and/or zone array with corresponding zone numbers, calculate a rmf_2d_array or rmf_3d_array. Parameter values can be used to multiply the arrays as well.
rmf_calculate_array(dis, layer = NULL, mltarr, zonarr, iz = NULL, parval = 1)
| dis | dis object; used to set the dimensions of the array |
|---|---|
| layer | optional numeric vector with the layer indices to which |
| mltarr | either a list of multiplier arrays or a single multiplier array. The keyword |
| zonarr | either a list of the zone arrays or a single zone array. The keyword |
| iz | only read when zonarr is not |
| parval | vector of parameter values corresponding to |
rmf_2d_array or rmf_3d_array with the values calculated from the multiplier and/or zone arrays.
if mltarr (zonarr) is a list, certain elements are allowed to be set to "NONE" ("ALL") indicating the multiplier (zone) array is not active for this cluster.
if mltarr is "NULL" and zonarr is "ALL", all the cells in the returned array will be equal to the parameter value.
Multiple multiplier arrays, zone arrays and/or parameter values can be used to calculate the final values. Cells that correspond to multiple multiplier arrays, zone arrays and/or parameter values will be summed. Resulting arrays for the same layer will also be summed.
If more than 1 layer index is specified, a rmf_3d_array is returned