Regriding and subsetting data Start
Hi @aho,
I have found the following error:
Error in dim(x$x) <- dim_bk :
dims [product 1280] do not match the length of object [1279]
I am using the following code:
path <- '/esarchive/recon/ecmwf/era5/daily_mean/$var$_f1h/$var$_$months$.nc'
dates <- seq(ymd('20060101'), ymd('20181201'), by = 'month')
dates <- format(dates, "%Y%m")
data <- Start(dataset = path,
var = 'psl',
months = dates,
time = 'all',
latitude = values(list(30, 70)),
latitude_reorder = Sort(decreasing = FALSE),
longitude = values(list(-40, 40)),
longitude_reorder = CircularSort(-180, 180),
transform = CDORemapper,
transform_extra_cells = 2,
transform_params = list(grid = 'r360x181',
method = 'conservative',
crop = c(-40, 40,
30, 70)),
transform_vars = c('latitude', 'longitude'),
synonims = list(latitude = c('lat', 'latitude'),
longitude = c('lon', 'longitude')),
return_vars = list(latitude = 'dataset',
longitude = 'dataset',
time = NULL),
retrieve = TRUE)
If I change the variable to 'ta850', for instance, it works. This variable has higher resolution than 'psl' and you need to change the path to:
path <- '/esarchive/recon/ecmwf/era5/daily_mean/$var$_f1h-r1440x721cds/$var$_$months$.nc'
The code also works without regriding.
I am trying to find a workaround. Let me know if you have any idea.
Thanks,
Núria