Skip to contents

This function sets up the aed_totals parameters in the aed block of the bgc section of the model config for glm_aed. It extracts the necessary information from the aed_phyto_pars and aed blocks to determine which variables to include in the totals for TN, TP and TOC, and their scaling factors. It then updates the model config and writes it back to the aed.nml file in the glm_aed model directory.

Usage

set_aed_totals(aeme, path, lake_dir = NULL)

Arguments

aeme

Aeme object.

path

character; directory where input files are located. Defaults to the path stored in aeme, or the current working directory if not set.

lake_dir

Path to the lake AEME directory. If NULL, it is derived from aeme/path.

Value

Aeme object with aed_totals parameters set in the model config