Troubles with StartR() load
Hi An-Chi,
I need help. I tried to open files from a continuous experiment (not a forecast with startdates and members) with StartR.
I did like that:
vari <- 'tas'
compo <- 'Amon'
expid <- 'a3fy'
lat_min <- -90
lat_max <- 90
lon_min_exp <- 0.1
lon_max_exp <- 359.9
grid_mod <- 'gr'
years_exp <- paste0(c(2356:2356), '01-', c(2356:2356), '12')
path <- paste0('/esarchive/exp/ecearth/',expid,'/cmorfiles/CMIP/EC-Earth-Consortium/EC-Earth3-HR/piControl/r1i1p1f1/',
compo, '/$var$/', grid_mod,'/v*/$var$_', compo,'_EC-Earth3-HR_piControl_r1i1p1f1_', grid_mod,'_$year$.nc')
data_exp_retrieve <- startR::Start(dat = path,
var = vari,
#memb = ,
year = years_exp, # paste(seq(yr1_exp,yr2_exp)),
time = 'all',
lat = 'all', # values(list(lat_min, lat_max)),
lat_reorder = Sort(),
lon = values(list(lon_min_exp, lon_max_exp)),
lon_reorder = CircularSort(-180,180),
synonims = list(lon = c('lon', 'longitude'),
lat = c('lat', 'latitude')),
return_vars = list(time= c('year'),
lat='dat',
lon='dat'),
retrieve = T)
It seems to me that it's equivalent of what I do for another experiment but a forecast one and it worked well. But in this case, I got this error:
Error in startR::Start(dat = path, var = vari, year = years_exp, time = "all", : The case is goes_across_prime_meridian but no adjustion for the indices!
Traceback:
1. startR::Start(dat = path, var = vari, year = years_exp, time = "all",
. lat = "all", lat_reorder = Sort(), lon = values(list(lon_min_exp,
. lon_max_exp)), lon_reorder = CircularSort(-180, 180),
. synonims = list(lon = c("lon", "longitude"), lat = c("lat",
. "latitude")), return_vars = list(time = c("year"), lat = "dat",
. lon = "dat"), retrieve = T)
2. stop("The case is goes_across_prime_meridian but no adjustion for the indices!")
I tried changing the values of latitudes, without success.
What do I do wrongly?
Thanks