Start attribute $NotFoundFiles returns list with wrong format
Hi!
I'm loading a set of experiments and from them the according observations.
hcst<-Start(dat = hcst.path,
var = variable,
file_date = file_dates,
time = indices(ltmin:ltmax),
latitude = values(list(lats.min, lats.max)),
longitude = values(list(lons.min, lons.max)),
synonims = list(latitude=c('lat','latitude'),
longitude=c('lon','longitude'),
member=c('ensemble')),
member = indices(1:hcst.nmember),
return_vars = list(latitude = 'dat',
longitude = 'dat',
time = 'file_date'),
split_multiselected_dims = TRUE,
retrieve = T)
dates <- attr(hcst, 'Variables')$common$time
dates_file <- sapply(dates, format, '%Y%m%d')
dates_file <- format(as.Date(dates_file, '%Y%m%d'), "%Y%m%d")
dim(dates_file) <- dim(Subset(hcst,
along=c('dat','var',
'latitude', 'longitude', 'member'),
list(1,1,1,1,1), drop=T))
obs <- Start(dat = obs.path,
var = variable,
file_date = dates_file,
latitude = values(list(lats.min, lats.max)),
longitude = values(list(lons.min, lons.max)),
synonims = list(latitude=c('lat','latitude'),
longitude=c('lon','longitude')),
return_vars = list(latitude = 'dat',
longitude = 'dat',
time = 'file_date'),
split_multiselected_dims = TRUE,
retrieve = TRUE)
When retrieving the list of not found Files, the ones returned for the the observation doesn't have the correct format (see example below).
Experiments list:
[94] "/esarchive/exp/ecmwf/s2s-monthly_ensforhc/weekly_mean//sfcWind_f24h/20200305/sfcWind_20160305.nc"
[95] "/esarchive/exp/ecmwf/s2s-monthly_ensforhc/weekly_mean//sfcWind_f24h/20200305/sfcWind_20170305.nc"
[96] "/esarchive/exp/ecmwf/s2s-monthly_ensforhc/weekly_mean//sfcWind_f24h/20200305/sfcWind_20170305.nc"
[97] "/esarchive/exp/ecmwf/s2s-monthly_ensforhc/weekly_mean//sfcWind_f24h/20200305/sfcWind_20180305.nc"
[98] "/esarchive/exp/ecmwf/s2s-monthly_ensforhc/weekly_mean//sfcWind_f24h/20200305/sfcWind_20180305.nc"
[99] "/esarchive/exp/ecmwf/s2s-monthly_ensforhc/weekly_mean//sfcWind_f24h/20200305/sfcWind_20190305.nc"
[100] "/esarchive/exp/ecmwf/s2s-monthly_ensforhc/weekly_mean//sfcWind_f24h/20200305/sfcWind_20190305.nc"
Observations list
[394] "/esarchive/recon/ecmwf/era5/weekly_mean/sfcWind_f1h-240x121/sfcWind_$file_date$.nc"
[395] "/esarchive/recon/ecmwf/era5/weekly_mean/sfcWind_f1h-240x121/sfcWind_$file_date$.nc"
[396] "/esarchive/recon/ecmwf/era5/weekly_mean/sfcWind_f1h-240x121/sfcWind_$file_date$.nc"
[397] "/esarchive/recon/ecmwf/era5/weekly_mean/sfcWind_f1h-240x121/sfcWind_$file_date$.nc"
[398] "/esarchive/recon/ecmwf/era5/weekly_mean/sfcWind_f1h-240x121/sfcWind_$file_date$.nc"
[399] "/esarchive/recon/ecmwf/era5/weekly_mean/sfcWind_f1h-240x121/sfcWind_$file_date$.nc"
[400] "/esarchive/recon/ecmwf/era5/weekly_mean/sfcWind_f1h-240x121/sfcWind_$file_date$.nc"
This does not happen for the attribute $Files