I have downloaded open data of CRU TS 3.0 from the website https://data.ceda.ac.uk/badc/cru/data/cru_ts/cru_ts_3.00/data in which cru_ts_3_00.1901.2006.tmp.nc.gz was downloaded. I open this data in R through the following code
library(ncdf4) getwd() nc.tmp <- nc_open("cru_ts_3_00.1901.2006.tmp.nc") print(nc.tmp) tmp1 <- brick("cru_ts_3_00.1901.2006.tmp.nc", varname="tmp") tmp1 plot(tmp1) > tmp1 class : RasterBrick dimensions : 360, 720, 259200, 1272 (nrow, ncol, ncell, nlayers) resolution : 0.5, 0.5 (x, y) extent : -180, 180, -90, 90 (xmin, xmax, ymin, ymax) crs : +proj=longlat +datum=WGS84 +no_defs source : C:/Users/XX/cru_ts_3_00.1901.2006.tmp.nc names : X372, X373, X374, X375, X376, X377, X378, X379, X380, X381, X382, X383, X384, X385, X386, ... z-value : 372, 1643 (min, max) varname : tmp
Now, I would like to take a mean of rasters from year 1960 to 1990 (1960-1990). I can't seem to make sense out of the names in
tmp1 as it starts with X372, X373 .... and ending at X1643. So I am confused that which year(containing months) is 1960,1961,1962 etc?