Hi,
I am using motuclient to download from:
service: GLOBAL_MULTIYEAR_PHY_001_030-TDS
product: cmems_mod_glo_phy_my_0.083_P1D-m
The downloaded variables are: -v zos -v uo -v vo -v thetao -v so
but the make_OGCM_mercator script fails with the error:
"Undefined function ‘dim’ for input arguments of type ‘double’.
Error in ext_data_OGCM (line 77)
ndims=length(dim(nc{vname}));
Error in interp_OGCM (line 61)
zeta=ext_data_OGCM(nc,lonT,latT,‘ssh’,tin,lon,lat,1,Roa,interp_method);
Error in make_OGCM_mercator (line 158)
interp_OGCM(OGCM_dir,OGCM_prefix,Ymin,Mmin,Roa,interp_method,…"
It seems that the script is looking for the variable “ssh” instead of the variable “zos”. Even if I change the script to look for the variable “zos” it fails again with the error:
"Error using griddedInterpolant
Grid is improperly defined.
Error in interp2>makegriddedinterp (line 229)
F = griddedInterpolant(varargin{:});
Error in interp2 (line 137)
F = makegriddedinterp(X, Y, V, method,extrap);
Error in ext_data_OGCM (line 124)
data=interp2(x,y,data,lon,lat,‘nearest’);
Error in interp_OGCM (line 61)
zeta=ext_data_OGCM(nc,lonT,latT,‘zos’,tin,lon,lat,1,Roa,interp_method);
Error in make_OGCM_mercator (line 158)
interp_OGCM(OGCM_dir,OGCM_prefix,Ymin,Mmin,Roa,interp_method,…
"
Any ideas what is the problem? In the interp_OGCM function the variable names seem to correspond to a different product e.g. “ssh”, “u”, “v”, “ubar”, “vbar”, “salt”, “temp”… instead of the “uo”, “vo”, “zos”, “thetao”, “so” downloaded from the cmems_mod_glo_phy_my_0.083_P1D-m
Thank you for any advice
Konstantinos