X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 24 May 2014 10:34 AM by  anon
IDL 8.3 workbench java_bridge problem?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
24 May 2014 10:34 AM
    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

    Deleted User



    New Member


    Posts:
    New Member


    --
    29 May 2014 12:52 PM
    Hi Dai, Just to be sure, did you check that the lookupTables.txt is located where it's been looked?: resources/grib1/ Now, IDL comes with a "resource" folder, but not with grib1. Fernando
    You are not authorized to post a reply.