- 积分
- 1422
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-9-12
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2017-4-17 18:48:39
|
显示全部楼层
苯墨君 发表于 2017-4-17 16:01
data0=read_grib('gfsanl_3_20040302_0000_000.grb',-1); %%%读取NCEP再分析资料
read_grib('gfsanl_3_2 ...
我在安装read_grib的时候出现了错误
mex BDS_unpack_mex5.c
No supported SDK or compiler was found on this computer.
For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013a/win64.html
Error using mex (line 206)
Unable to complete successfully.
这是什么问题?
我还尝试了nctoolbox,但也出错了
>> filename = 'C:/Users/lenovo/Desktop/fnl_19990801_00_00.grib1';
>> nc=ncgeodataset(filename);
2017-04-17 18:30:21,462 [main] WARN ucar.nc2.grib.grib1.Grib1Index - Grib1Index bad size = -1 for C:/Users/lenovo/Desktop/fnl_19990801_00_00.grib1
Error using ncdataset (line 91)
Failed to open C:/Users/lenovo/Desktop/fnl_19990801_00_00.grib1
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.grib1.Grib1IndexProto$Grib1Index.access$3000(Grib1IndexProto.java:1178)
at
ucar.nc2.grib.grib1.Grib1IndexProto$Grib1Index$Builder.maybeForceBuilderInitialization(Grib1IndexProto.java:1459)
at ucar.nc2.grib.grib1.Grib1IndexProto$Grib1Index$Builder.<init>(Grib1IndexProto.java:1451)
at ucar.nc2.grib.grib1.Grib1IndexProto$Grib1Index$Builder.create(Grib1IndexProto.java:1465)
at ucar.nc2.grib.grib1.Grib1IndexProto$Grib1Index$Builder.access$2800(Grib1IndexProto.java:1436)
at ucar.nc2.grib.grib1.Grib1IndexProto$Grib1Index.newBuilder(Grib1IndexProto.java:1423)
at ucar.nc2.grib.grib1.Grib1Index.makeIndex(Grib1Index.java:210)
at ucar.nc2.grib.GribIndex.makeGribCollectionFromSingleFile(GribIndex.java:112)
at ucar.nc2.grib.grib1.Grib1Iosp.open(Grib1Iosp.java:135)
at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1499)
... 7 more |
|