I have downloaded multiple monthly mean GRIB files from https://cds.climate.copernicus.eu/cdsapp#!/dataset/ecv-for-climate-change?tab=form for Surface Air temperature , from 1979 to 1990. 144 GRIB files have been saved in my working directory. I know how to read one GRIB FILE (this is of 1979 JAN):

#setting working directory
setwd("C:/Users/Halima Usman/Documents/ICIMOD")
#reading grib files
    plot(raster1) #january 1979

Now, I would like to know how to read all the 144 files in one go and create a single stack of all those GRIB files and take a mean.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.