请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 12018|回复: 4

nctoolbox工具箱安装后仍不能读取grib2数据

[复制链接]

新浪微博达人勋

发表于 2020-1-18 19:09:41 | 显示全部楼层 |阅读模式
1金钱
matlab2019a安装nctoolbox-20130305.zip工具箱后扔读取grib2数据,求大神指点,先谢谢啦

这不是安装成功了嘛

这不是安装成功了嘛

2.png
>>test
NCTOOLBOX added to Matlab path

错误使用 ncdataset (line 91)
Failed to open fnl_20170602_12_00.grib2

出错 cfdataset (line 55)
            obj = obj@ncdataset(url);

出错 ncgeodataset (line 20)
            obj = obj@cfdataset(url);

出错 test (line 5)
nc=ncgeodataset(filename3);

原因:
    错误使用 ncdataset (line 75)
    Java exception occurred:
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: ucar/nc2/util/CloseableIterator

            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.NoClassDefFoundError: ucar/nc2/util/CloseableIterator

            at ucar.nc2.grib.grib2.Grib2CollectionBuilder.<init>(Grib2CollectionBuilder.java:115)

            at
        ucar.nc2.grib.grib2.Grib2CollectionBuilder.readOrCreateIndexFromSingleFile(Grib2CollectionBuilder.java:76)

            at ucar.nc2.grib.GribIndex.makeGribCollectionFromSingleFile(GribIndex.java:123)

            at ucar.nc2.grib.grib2.Grib2Iosp.open(Grib2Iosp.java:310)

            at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1499)

            ... 7 more

    Caused by: java.lang.ClassNotFoundException: ucar.nc2.util.CloseableIterator

            at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

            ... 12 more







密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2020-1-31 17:49:50 | 显示全部楼层
好像是 java编译器太新了 暂时没找到解决方法 我都是转成netcdf格式
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 成长值: 32430
发表于 2020-1-31 18:35:36 | 显示全部楼层
应该是解决了吧
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2020-2-7 21:20:15 | 显示全部楼层

想请教二爷这个是什么原因啊,我也遇到同样的问题
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2020-3-6 13:00:15 | 显示全部楼层
我也遇到了同样的问题,请问是怎么解决的呢?
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表