Bug when retrieving lon - lat dimensions in reversed order
As reported by @llledo , when dims 'lon' and 'lat' are present in the files (in this order) and requested in reversed order, the output is incorrectly arranged.
After some preliminary debugging, I can tell that the bug does NOT come from easyNCDF::NcToArray
.
library(startR)
#path <- '/esnas/exp/ecearth/a04f/6hourly/$var$_f6h/$var$_*_S$sdate$_$member$_$chunk$.nc'
path <- '/esnas/exp/ecearth/a04f/monthly_mean/$var$_f6h/$var$_*_S$sdate$_$member$_$chunk$.nc'
data <- Start(dataset = path,
var = 'sfcWind',
sdate = 'all',
member = 'first',
chunk = 'first',
time = 'all',
lat = 'all',
lon = 'all',
chunk_depends = 'sdate',
time_across = 'chunk',
return_vars = list(lon = NULL,
lat = NULL))
image(drop(data$Data))