Hello,
I download the nctoolbox 20130305 to my Linux
machine. After I run "setup_nctoolbox" on matlab v2012b, I access the
"demos" and run "demo2", it is successful. But when I run "geodemo_1c", it
shows:
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=cerbose for more details
Also I downloaded a grib2 file from NOAA WWI "multi_1.at_4m.hs.201006.grb2",
then I use the following command:
nc=ncgeodataset('multi_1.at_4m.hs.201006.grb2');
It shows the following error message:
2014-03-10 13:10:52,949 [main] WARN ucar.nc2.grib.grib2.Grib2Index -
Grib2Index bad size = -1 for multi_1.at_4m.hs.201006.grb2 index =
multi_1.at_4m.hs.201006.grb2.gbx9
Error using ncdataset (line 91)
Failed to open multi_1.at_4m.hs.201006.grb2
Error in cfdataset (line 55)
obj = obj@ncdataset(url);
Error in ncgeodataset (line 20)
obj = obj@cfdataset(url);
Caused by:
Error using ncdataset (line 75)
Java exception occurred:
java.lang.RuntimeException: java.lang.NoSuchFieldError:
alwaysUseFieldBuilders
at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1535)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:887)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:496)
at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:693)
at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:424)
at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:407)
at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:392)
at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:379)
Caused by: java.lang.NoSuchFieldError: alwaysUseFieldBuilders
at ucar.nc2.grib.grib2.Grib2IndexProto$Grib2Index.access$5400(Grib2IndexProto.java:2635)
at ucar.nc2.grib.grib2.Grib2IndexProto$Grib2Index$Builder.maybeForceBuilderInitialization(Grib2IndexProto.java:2914)
at ucar.nc2.grib.grib2.Grib2IndexProto$Grib2Index$Builder.<init>(Grib2IndexProto.java:2906)
at ucar.nc2.grib.grib2.Grib2IndexProto$Grib2Index$Builder.create(Grib2IndexProto.java:2920)
at ucar.nc2.grib.grib2.Grib2IndexProto$Grib2Index$Builder.access$5200(Grib2IndexProto.java:2891)
at ucar.nc2.grib.grib2.Grib2IndexProto$Grib2Index.newBuilder(Grib2IndexProto.java:2878)
at ucar.nc2.grib.grib2.Grib2Index.makeIndex(Grib2Index.java:231)
at ucar.nc2.grib.GribIndex.makeGribCollectionFromSingleFile(GribIndex.java:112)
at ucar.nc2.grib.grib2.Grib2Iosp.open(Grib2Iosp.java:310)
at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1499)
... 7 more
This is the first time I use nctoolbox to read the grib2 file and I am not
sure the error is coming from the grib2 file or nctoolbox cannot run on
matlab v2012b. Please advice.
Thanks,
Lianyuan