Bug in Load in the develop branch
I have found these bug in Load in the develop branch: If I try:
source("/home/cprodhomme/tools/s2dverification-develop/s2dverification/R/Load.R")
Data=Load("tas", c("b0cm","b0gq"), obs = c("ERAint"),sdates=c(19850501,19860501),
nleadtime = 4, nmember = 10, leadtimemin = 1,
leadtimemax = 4, storefreq = "monthly", sampleperiod = 1,
method = "conservative", output="lonlat")
I get the following message:
[1] "/cfunas/exp/ecearth/b0cm/monthly_mean/tas_6hourly/tas_19850501.nc"
[1] "/cfunas/exp/ecearth/b0gq/monthly_mean/tas_6hourly/tas_19850501.nc"
[1] "Files loaded from /cfu/data/ecmwf/eraint/monthly_mean/tas_f6h/tas_*"
[1] "/cfu/data/ecmwf/eraint/monthly_mean/tas_f6h/tas_198505.nc"
Error in which(maskobs[[indobs]] < 0.5 | is.na(tmp1[, , 1])) :
dims [product 51200] do not match the length of object [0]
While if I try the same with the version in master:
source("/home/cprodhomme/tools/s2dverification-master/s2dverification/R/Load.R")
Data=Load("tas", c("b0cm","b0gq"), obs = c("ERAint"),sdates=c(19850501,19860501),
nleadtime = 4, nmember = 10, leadtimemin = 1,
leadtimemax = 4, storefreq = "monthly", sampleperiod = 1,
method = "conservative", output="lonlat")
It works perfectly fine. Normally, I have the correct and up-to-date version of both branches.