Skip to contents

For one or more supplementary barriers, updates the per-config log-reduction according to each barrier's type: pathway-specific barriers use update_logreduction_path(), natural die-off uses update_logreduction_decay(), and product/soil-specific barriers use update_logreduction_specific_barrier(). Barriers are applied in turn so their reductions accumulate; any other barrier leaves the config unchanged. Extracted from run_qmra_initial_situation() / run_qmra_supplementary_process() (was an inline anonymous function).

Usage

retrieve_specific_barrier(
  config,
  barrierID,
  cropHeight,
  matrixID,
  popID,
  decay
)

Arguments

config

A per-row config (list) from the scenario.

barrierID

One or more supplementary barrier ids (a scalar or a vector); each is applied in turn. NA matches no branch and is skipped.

cropHeight

The crop height.

matrixID

The exposure-matrix id.

popID

The exposed-population id.

decay

The number of decay days (for natural die-off barriers).

Value

The updated config.