Hi, guys:
I want to deal grib file with IDL 8.3 and Netcdf-java in windows 7 64bit. I run the fellowing code:
oNetcdfDataset = OBJ_NEW("IDLJavaObject$NetcdfDataset", "ucar.nc2.dataset.NetcdfDataset")
NetcdfFileObj = oNetcdfDataset->openDataset("GLDAS_VIC10_M.A201305.001.grb")
In IDL workbench "idlde.exe", I get the errors, which shows that java bridge could not open the resource files in jar:
IDL> oNetcdfDataset = OBJ_NEW("IDLJavaObject$NetcdfDataset", "ucar.nc2.dataset.NetcdfDataset")
IDL> NetcdfFileObj = oNetcdfDataset->openDataset("GLDAS_VIC10_M.A201305.001.grb")
% May 25, 2014 9:48:52 AM ucar.nc2.grib.grib1.tables.Grib1ParamTables$Lookup readLookupTable
WARNING: Could not open table file:resources/grib1/lookupTables.txt
% May 25, 2014 9:48:52 AM ucar.nc2.grib.grib1.tables.Grib1ParamTables$Lookup readLookupTable
WARNING: Could not open table file:resources/grib1/ecmwf/lookupTables.txt
% May 25, 2014 9:48:52 AM ucar.nc2.grib.grib1.tables.Grib1ParamTables$Lookup readLookupTable
WARNING: Could not open table file:resources/grib1/ncl/lookupTables.txt
% May 25, 2014 9:48:52 AM ucar.nc2.grib.grib1.tables.Grib1ParamTables$Lookup readLookupTable
WARNING: Could not open table file:resources/grib1/dss/lookupTables.txt
% May 25, 2014 9:48:52 AM ucar.nc2.grib.grib1.tables.Grib1ParamTables$Lookup readLookupTable
WARNING: Could not open table file:resources/grib1/wrf/lookupTables.txt
% May 25, 2014 9:48:52 AM ucar.nc2.grib.grib1.tables.Grib1ParamTables$Lookup getParameterTable
WARNING: Could not find a table for GRIB file with center: 0 subCenter: -1 version: -1
% Exception thrown
% Execution halted at: $MAIN$
But with idl.exe command, it works OK. So why?
PS:
NetCDF-Java library:
ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v4.3/toolsUI-4.3.jar
GRIB file URL:
http://ramadda.org/reposi...c8-82ce-35b7cf39d39c