I downloaded some rasters of climatic variables included in TerraClimate (Abatzoglou et al. 2018), from http://www.climatologylab.org/terraclimate.html
I know that each raster is huge, but my computer has been trying to open just one of them and is lasting too long: since 10 hours ago or more. I wish to know if anybody out there was able to open them in R.
I did the following:
library(raster) library(ncdf4) library(foreach) library(doSNOW) cl <- makeCluster(8, type="SOCK") # for 4 cores machine registerDoSNOW (cl) setwd("MY/WORKING/DIRECTORY/") temp <- nc_open("ppt_1958.nc")
I also tryied, with the same result:
temp <- raster("ppt_1958.nc") temp <- stack("ppt_1958.nc")
My computer is running under Windows 10, 64 bits, has i7 processor and 32 GB RAM.
Abatzoglou, J.T., S.Z. Dobrowski, S.A. Parks, K.C. Hegewisch, 2018, Terraclimate, a high-resolution global dataset of monthly climate and climatic water balance from 1958-2015, Scientific Data,