Start(): time attribute is wrong in the case of daylight saving
The time attribute is wrong when encountering daylight saving (usually 25th Oct). In netCDF file, the time stays the same despite the change between CET and CEST. But Start() returns different hours.
ncdump -c -t /esarchive/exp/ecmwf/system4_m1/monthly_mean/uas_f6h/uas_20120501.nc
time = "2012-05-31 18", "2012-06-30 18", "2012-07-31 18", "2012-08-31 18", "2012-09-30 18", "2012-10-31 18", "2012-11-30 18", "2012-12-02" ;
The time is always 18h.
But the time changes to 17h using Start(). See below.
repo_exp <- paste0('/esarchive/exp/ecmwf/system4_m1/monthly_mean/$var$_f6h/$var$_$sdate$.nc')
sdate <- '20120501'
system4 <- Start(dat = repo_exp,
var = 'uas',
ensemble = 'all',
sdate = sdate,
time = 'all',
latitude = 'first',
latitude_reorder = Sort(),
longitude = 'first',
return_vars = list(latitude = NULL,
longitude = NULL,
time = c('sdate')))
dates <- attr(system4, 'Variables')$common$time
print(dates)
[1] "2012-05-31 18:00:00 CEST" "2012-06-30 18:00:00 CEST"
[3] "2012-07-31 18:00:00 CEST" "2012-08-31 18:00:00 CEST"
[5] "2012-09-30 18:00:00 CEST" "2012-10-31 17:00:00 CET"
[7] "2012-11-30 17:00:00 CET" "2012-12-01 23:00:00 CET"
The problem is similar to s2dverification issue 242