CDORemap with Start (transform) does not interpolate
With the following piece of code:
library(startR)
library(lubridate)
rean_data <- Start(
dat = '/esarchive/recon/ecmwf/era5/monthly_mean/$var$_f1h/$var$_$sdate$.nc',
lon = 'all',
lat = 'all',
time = 'all',
sdate = format(ymd("19931201") + months(0:2) + rep(years(0:23),each=3),"%Y%m"),
var = 'sfcWind',
transform = CDORemapper,
transform_params = list(grid = 'r360x181',
method = 'conservative',
crop = FALSE),
transform_vars = c('lat','lon'),
transform_extra_cells = 2,
lat_reorder = Sort(decreasing = FALSE),
lon_reorder = CircularSort(-180,180),
num_procs=1,
pattern_dims = 'dat',
return_vars = list(lat = 'dat',
lon = 'dat',
time = c('sdate')),
retrieve=T
)
CDORemap does not interpolate the native ERA5 grid to the r360x181 grid. However, in the attributes of rean_data
, I can see the interpolated latitude and longitude values.
I've been checking the code carefully, also double checked by @cdelgado , and we couldn't find the reason. Can you take a look at it? It's not urgent for us. Thank you.
Jaume