powered by
This fuction will calculate the mean air temperature from minimum and maximum air temperature data.
tmean(tmax_stack, tmin_stack)
Returns a SpatRaster object of mean air temperature.
stack of maximum air temperature
stack of minimum air temperature
if (FALSE) { image_tmean <- tmean(tmax_stack = image_tmax, tmin_stack = image_tmin) }
Run the code above in your browser using DataLab