Issue with FAQ 8 on Define a path with multiple dependencies
The solution suggested in FAQ 8 to define a path with multiple dependencies, say experiments with different expid, different member names and different model versions is not working properly. The example given in the FAQ creates an array with the right dimensions, but it only fills in the first expid. There follow the lines for a work around:
mod = 'Omon'
grid = 'gn'
reg = 'Global_Ocean'
yrh1 = 1960
yrh2 = 2014
years <- paste0(c(yrh1:yrh2), '01-', c(yrh1:yrh2), '12')
reg_ind = 4
repos <- paste0('/esarchive/exp/ecearth/',expid,'/diags/CMIP/EC-Earth-Consortium/EC-Earth3/historical/r*/',mod,'/$var$/',grid,'/v*/$var$',mod,'EC-Earth3_historical*',grid,'_$year$.nc',sep='')
data_cmip6_h <- Start(dat = repos, var = vari, region=indices(c(4)), year = years, time = 'all', return_vars = list(time = NULL, region=NULL), retrieve = T)