netcdf file won't load
5 次查看(过去 30 天)
显示 更早的评论
I have 3 netcdf files all from the same source. 2 of them are loading fine using ncload (after running the nc toolbox) but one has an error which I don't understand. The file is too big to attach, but the error message is this as follows
data = ncload('precip.nc');
Error using ncdataset/readdata (line 460)
Java exception occurred:
java.lang.OutOfMemoryError: Java heap space
at ucar.ma2.ArrayDouble.<init>(ArrayDouble.java:104)
at ucar.ma2.ArrayDouble$D3.<init>(ArrayDouble.java:312)
at ucar.ma2.ArrayDouble$D3.<init>(ArrayDouble.java:304)
at ucar.ma2.ArrayDouble.factory(ArrayDouble.java:64)
at ucar.ma2.ArrayDouble.factory(ArrayDouble.java:50)
at ucar.ma2.Array.factory(Array.java:107)
at ucar.ma2.Array.factory(Array.java:101)
at ucar.nc2.dataset.EnhanceScaleMissingImpl.convertScaleOffset(EnhanceScaleMissingImpl.java:633)
at ucar.nc2.dataset.EnhanceScaleMissingImpl.convertScaleOffsetMissing(EnhanceScaleMissingImpl.java:616)
at ucar.nc2.dataset.VariableDS.convertScaleOffsetMissing(VariableDS.java:346)
at ucar.nc2.dataset.VariableDS._read(VariableDS.java:505)
at ucar.nc2.Variable.read(Variable.java:709)
Error in ncdataset/data (line 159)
d = obj.readdata(variable);
Error in ncgeodataset/subsref (line 378)
B = builtin('subsref',obj,g);
Error in ncload (line 21)
eval(sprintf('v.%s=nc.data(''%s'');',vstr,vstr));
Thanks you in advance for any help.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!