Compute CRU-based monthly or seasonal climatologies using a specific historical window. Use the climatologies to compute delta change from raw climate values.

cru_clim(x, limits = c(1960, 1989))

deltas(x, limits = c(1960, 1989))

Arguments

x

a data frame such as returned using the snapclim package.

limits

numeric, length-2 vector giving the range of years in the climatological window.

Value

a data frame.

Details

cru_clim is used internally by deltas. It does not need to be used directly in this case.

Examples

library(snapclim) library(dplyr) x <- climdata("ar5stats", "Anchorage") %>% filter(Var %in% c("pr", "tas")) cru_clim(x)
#> # A tibble: 24 x 3 #> # Groups: Var [?] #> Var Month ClimMean #> <fct> <fct> <dbl> #> 1 pr Jan 19.6 #> 2 pr Feb 19.3 #> 3 pr Mar 16.6 #> 4 pr Apr 16.1 #> 5 pr May 19.0 #> 6 pr Jun 27.3 #> 7 pr Jul 44.6 #> 8 pr Aug 68.3 #> 9 pr Sep 67.2 #> 10 pr Oct 52.6 #> # ... with 14 more rows
deltas(x)
#> # A tibble: 54,480 x 8 #> RCP Model Var Group Location Year Month Mean #> <fct> <fct> <fct> <chr> <chr> <int> <fct> <dbl> #> 1 Historical CRU 4.0 pr Alaska Anchorage 1901 Jan 0.357 #> 2 Historical CRU 4.0 pr Alaska Anchorage 1901 Feb 0.0518 #> 3 Historical CRU 4.0 pr Alaska Anchorage 1901 Mar 0.845 #> 4 Historical CRU 4.0 pr Alaska Anchorage 1901 Apr 0.996 #> 5 Historical CRU 4.0 pr Alaska Anchorage 1901 May 0.683 #> 6 Historical CRU 4.0 pr Alaska Anchorage 1901 Jun 0.880 #> 7 Historical CRU 4.0 pr Alaska Anchorage 1901 Jul 0.896 #> 8 Historical CRU 4.0 pr Alaska Anchorage 1901 Aug 1.02 #> 9 Historical CRU 4.0 pr Alaska Anchorage 1901 Sep 0.864 #> 10 Historical CRU 4.0 pr Alaska Anchorage 1901 Oct 1.31 #> # ... with 54,470 more rows