monthly_stack: Function to calculate the mean monthly rainfall/reference...

View source: R/monthly_stack.R

monthly_stackR Documentation

Function to calculate the mean monthly rainfall/reference evapotranspiration to generate the crop water demand

Description

This function will calculate the mean monthly air temperature based on the period of time selected (start_date and end_date).

Usage

monthly_stack(stack, start_date, end_date)

Arguments

stack

Stack of mean rainfall/reference evapotranspiration SpatRaster

start_date

Date that start the investigation, should be in the following format (2000-01-01 /Year-Month-Day)

end_date

Date that end the investigation, should be in the following format (2017-12-31 /Year-Month-Day)

Value

Returns a SpatRaster with a monthly mean air temperature from a period of time

Examples

## Not run: 
start_date <- c('2000-01-01')
end_date <- c('2017-12-01')
monthly_rainfall <- monthly_stack(stack = rainfall_stack,
                                  start_date = start_date, end_date = end_date)

## End(Not run)

cropDemand documentation built on Oct. 14, 2023, 1:07 a.m.