getFirstGeneration: getFirstGeneration

View source: R/getFirstGeneration.R

getFirstGenerationR Documentation

getFirstGeneration

Description

Calculate First Generation Timings. This function calculates the timings for the first generation of a population based on initial conditions, thermal requirements, and temperature data.

Usage

getFirstGeneration(npop, t0, t1, params, stump_temp, lavalst)

Arguments

npop

A single numeric value representing the population size.

t0

A numeric vector of length 'npop' containing the initial starting day for each individual.

t1

A numeric vector of length 'npop' containing the thermal requirement (in degree days) for each individual.

params

A list containing various model parameters, such as threshold temperatures and time limits.

stump_temp

A list containing stump temperature data, including 10-day moving averages (s10).

lavalst

A numeric vector of length 'npop' initialized with zeros, to store the calculated day when each individual reaches the larval stage.

Value

A list containing:

  • today: A single numeric value representing the last calculated day for the final individual in the population.

  • lavalst: A numeric vector of length 'npop' containing the calculated day when each individual reaches the larval stage.


Alessandra23/pineR documentation built on Aug. 26, 2023, 8 a.m.