getGrowthPeriod: Calculating Growing Degree Days and Lengths of Growth Stages...

Description Usage Arguments Details Value Author(s) Examples

View source: R/getGrowthPeriod.R

Description

Calculates growing degree days (GDD) as well as cumulative GDD, and returns a list of various data frames based on specified arguments.

Usage

1
getGrowthPeriod(sitecode, crop, base, max, gdd = FALSE)

Arguments

sitecode

expression. Vector with names of sites from which to extract onset data.

crop

character. Type of crop in ICARDA database. See section 'Details' for crops which have calculations available.

base

integer. Minimum temperature constraint for the crop.

max

integer. Maximum temperature constraint for the crop.

gdd

boolean. If TRUE, returns a data frame containing calculated GDD and accumulated GDD together with climatic variables used for the calculations. Default: FALSE.

Details

Growing degree days for various crops are calculated using average daily minimum and maximum temperature values obtained from onset data. The temperature constraints specified in base and max are first applied before the calculations are done. These constraints ensure very low or high temperatures which prevent growth of a particular crop are not included. Crops for which GDD calculations are available include: 'Durum wheat', 'Bread wheat', 'Barley', 'Chickpea', 'Lentil'. Each of these can be supplied as options for the argument crop. Cumulative GDD values determine the length of different growing stages. Growing stages vary depending on the type of crop. Durum wheat, bread wheat and barley have five growth stages, i.e. beginning of heading, beginning and completion of flowering, and beginning and completion of grain filling. Chickpea and lentil have four growth stages, i.e. beginning of flowering, completion of 50 The length of the full growth cycle of the crop for each site is also given in the output data frame.

Value

A list object with different data frames depending on specified option in gdd. If gdd = TRUE, the object is a list containing three data frames: the first one with lengths of different growing stages, the second one with original onset data with phenological variables, and the third one with calculated GDD and accumulated GDD for the sites specified in sitecode. If gdd = FALSE, the object is a list containing two data frames: the first one with lengths of different growing stages, and the second one with original onset data with phenological variables for the sites specified in sitecode.

Author(s)

Khadija Aouzal, Zakaria Kehel, Bancy Ngatia

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
if(interactive()){
 # Calculate GDD for durum wheat
 data(durumDaily)
 growth <- getGrowthPeriod(sitecode = durumDaily$site_code,
                           crop = 'Durum wheat', base = 0,
                           max = 35, gdd = TRUE)

 # Get data frame with lengths of growth stages from list
 # object returned
 growth.lengths <- growth[[1]]

 # Get data frame with phenotypic variables from list
 # object returned
 growth.pheno <- growth[[2]]

 # Get data frame with GDD, cumulative GDD and climatic
 # variables from list object returned (when gdd = TRUE)
 growth.gdd <- growth[[3]]
 }

khadijaaziz/icardaFIGSr documentation built on Dec. 21, 2021, 6:38 a.m.