Error using matlab.int​ernal.imag​esci.netcd​flib

4 次查看(过去 30 天)
Error using matlab.internal.imagesci.netcdflib
The length of the START argument for climatology_bounds must be 2 instead of 3.
Error in netcdf.getVar (line 182)
data = matlab.internal.imagesci.netcdflib(funcstr,ncid,varid,varargin{:});

回答(1 个)

Walter Roberson
Walter Roberson 2023-6-21

You asked to read a variable from a netcdf file, and you passed a list of starting offsets for the reading. However, you passed a vector of three starting offsets for a 2d variable.

This might have been a simple typo on your part, but it potentially indicates a significant misunderstanding of what that particular variable is. And it is also possible that you have good reasons to expect a 3d variable there but this particular file might have only 2d. (For example if the various files broke the data up by decade then you could end up with the last one only having a single year stored)

类别

Help CenterFile Exchange 中查找有关 Call Web Services from MATLAB Using HTTP 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by