Error in Load 'object 'first_time_step_in_file' not found' due to the last change in the function
Hi @aho,
I am running a vignette from CSTools to test it for the next release, and I found the error "object 'first_time_step_in_file' not found". 'first_time_step_in_file' is a parameter I added in the last fix to handle SEAS5 forecasts. I provide below the code to reproduce the error, I have test s2dverification 2.8.5 and it doesn't return any error.
Time to debug.
Cheers,
Núria
require(zeallot)
library(s2dverification)
library(CSTools)
mth = '11'
clim_var = 'tas'
ini <- 1992
fin <- 2012
start <- as.Date(paste(ini, mth, "01", sep = ""), "%Y%m%d")
end <- as.Date(paste(fin, mth, "01", sep = ""), "%Y%m%d")
dateseq <- format(seq(start, end, by = "year"), "%Y%m%d")
grid <- "256x128"
obs <- "erainterim"
glosea5 <- '/esnas/exp/glosea5/specs-seasonal_i1p1/$STORE_FREQ$_mean/$VAR_NAME$-allmemb/$VAR_NAME$_$START_DATE$.nc'
c(exp, obs) %<-%
CST_Load(var = clim_var, exp = list(list(name = 'glosea5', path = glosea5),
list(name = 'ecmwf/system4_m1'),
list(name = 'meteofrance/system5_m1')),
obs = obs, sdates = dateseq, leadtimemin = 2, leadtimemax = 4,
lonmin = -20, lonmax = 70, latmin = 25, latmax = 75,
storefreq = "monthly", sampleperiod = 1, nmember = 9,
output = "lonlat", method = "bilinear",
grid = paste("r", grid, sep = ""))