Function to calculate the seasonal shift in the arriving of typical seasonal climates for a given period of interest as per Burrows et al. (2011).
Arguments
- r
stackwith monthly values of the climatic variable for the period of interest.- yr1
integerspecifying the initial year for the period of interest.- yr2
integerspecifying the end year for the period of interest.- yr0
integerspecifying the first year in the series.- th
integerminimum number of non NAs in the series needed to calculate the trend (default 3).- m
integernumber (1-12) of the month for which the shift is to be calculated
Value
a stack with the long-term monthly trend (C/year for temperature in degrees; "mTrend"),
seasonal rate of change (C/month; "seaRate"), and seasonal shift (day/decade; "seaShift").
References
Burrows et al. 2011. The pace of shifting climate in marine and terrestrial ecosystems. Science, 334, 652-655.
Examples
if (FALSE) { # \dontrun{
HSST <- VoCC_get_data("HSST.tif")
Apr <- shiftTime(HSST, yr1 = 1960, yr2 = 2009, yr0 = 1955, th = 10, m = 4)
terra::plot(Apr)
} # }