netcdf file won't load
10 views (last 30 days)
Show older comments
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 Comments
Answers (1)
See Also
Categories
Find more on NetCDF in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!