indices: Index functions

Description Usage Arguments Value NOTE Simulation runs

Description

Index functions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
it_exp(isim, runN)

it_exp2(pid, runN, scN)

it_site(isim, runN)

it_site2(pid, runN, scN)

it_Pid(isim, runN, sc, scN)

it_Pid0(iexp, isite, runN, sc, scN)

it_sim0(iexp, isite, runN)

it_sim2(pid, scN)

it_scen2(pid, scN)

Arguments

isim

An integer vector. A subset of runIDs_todo which is a subset of runIDs_total, i.e., a consecutive index across loop1 and loop2b

runN

An integer value. The number of runs/sites set up in the master input file, i.e., runN == runsN_master.

pid

An integer value. The index value across loop1, loop2b, and loop3 combined, i.e., a unique consecutive identification number across all simulation runs.

scN

An integer value. The number of (climate) scenarios used in the project, i.e., scN == sim_scens[["N"]].

sc

An integer value. The index along loop3 1...scN.

iexp

An integer value. The index value along loop1 1...expN.

isite

An integer value. The index value along loop2b 1...runsN_sites.

Value

The function it_exp returns an integer value of the index in loop 1 based on the position across loops 1+2b; invariant to include_YN.

The function it_site returns an integer value out of runIDs_sites, i.e., the position in loop 2b based on position across loops 1+2b; invariant to include_YN.

The function it_Pid returns an integer value of the index across all loops 1+2a+3, invariant to include_YN. A consecutive identification number for each possible rSFSW2 simulation–used as the ID for the output database.

NOTE

Do not change the indices without adjusting the design of the output databases!

Simulation runs


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on Aug. 14, 2020, 5:17 p.m.