Learn R Programming

cropDemand (version 1.0.3)

ppt_calibration: Calibration of rainfall (ppt) of 'TerraClimate'

Description

This fuction will calibrate the rainfall (ppt) from TerraClimate dataset based in the relationship with observed weather stations data.

Usage

ppt_calibration(slope, intercept, ppt_stack)

Value

Returns a SpatRaster of ppt calibrated.

Arguments

slope

the slope of the linear regression (numeric).

intercept

the intercept of the linear regression (numeric).

ppt_stack

stack of ppt.

Examples

Run this code
if (FALSE) {

ppt_cal<- ppt_calibration(slope = 0.7000972,
                          intercept = 23.753785, ppt_stack = ppt);
}

Run the code above in your browser using DataLab