This development is for #92 (closed) . as.s2dv_cube() now can recognize the lat and lon attributes that are under $common in startR_array object. This situation happens when return_vars = list(lat = NULL, lon = NULL)
in a Start() call. The fix solves the problem in the decadal loading module in auto-s2s (https://earth.bsc.es/gitlab/es/auto-s2s/-/blob/master/modules/Loading/Loading_decadal.R)
The function for startR_array is still not perfect. For example, "variable" is not guaranteed to be correct. If there are other variables like "region" listed in startR_array, the function cannot tell which is the desired variable. We need an input parameter to tell the function the variable name. Or, if we have a plan to make startR_array and s2dv_cube more compatible/consistent, this problem may be solved.
@erifarov please take a look at this change since it's related to s2dv_cube improvement. Let me know if you have any questions, thanks!
Best,
An-Chi