[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #HOT-122007]: converting grib2 files to netcdf using wgrib2 -netcdf



Hi Larry:

The problem is that the 2 Gb netcdf file limit is being exceeded (yes it 
expands that much!). I will add a -isLargeFile option to allow writing to the 
64-bit offset version. It will take a few days to get teh release out, ill let 
you know when its ready.

> Thanks, Russ.
> 
> I downloaded NetCDFAll-4.0.jar from that site and it now finds the main
> class.  However I am getting another error message indicating the
> variable starting position is exceeding an allowed value (see below).
> 
> My grib2 file is pretty big (383 Mb).  Is there a size limit to the
> grib2 files that can be read?
> 
> Thanks,
> 
> Larry
> 
> *******************************************************************
> Command & error messages below:
> 
> lgmastin@phobos:~/ncj> java -Xmx512m -classpath netcdfAll-4.0.jar
> ucar.nc2.dataset.NetcdfDataset -in
> ~/grib2/testfiles/NAM_Alaska_11km_20090920_0600.grib2 -out
> ~/grib2/testfiles/NAM_Alaska_11km_20090920_0600.nc
> Read
> from /home/lgmastin/grib2/testfiles/NAM_Alaska_11km_20090920_0600.grib2
> write to /home/lgmastin/grib2/testfiles/NAM_Alaska_11km_20090920_0600.nc
> 
> Exception in thread "main" java.lang.IllegalArgumentException: Variable
> starting pos=2343709348 may not exceed 2147483647
> at ucar.nc2.iosp.netcdf3.N3header.writeHeader(N3header.java:626)
> at ucar.nc2.iosp.netcdf3.N3header.create(N3header.java:560)
> at ucar.nc2.iosp.netcdf3.N3iosp.create(N3iosp.java:640)
> at ucar.nc2.NetcdfFileWriteable.create(NetcdfFileWriteable.java:594)
> at ucar.nc2.FileWriter.writeToFile(FileWriter.java:195)
> at ucar.nc2.dataset.NetcdfDataset.main(NetcdfDataset.java:1600)
> 
> 
> On Thu, 2009-11-05 at 16:11 -0700, Unidata netCDF Java Support wrote:
> > Larry,
> >
> > Alternatively, if from http://www.unidata.ucar.edu/software/netcdf-java/
> > you had downloaded
> >
> >   "The complete netCDF library (MD5) implements the full CDM model, with 
> > all dependent jars included."
> >
> > you would have gotten  netcdfAll-4.0.jar file instead of the .zip file you 
> > used, and that would have worked, using:
> >
> >   java -Xmx512m -classpath netcdfAll-4.0.jar ucar.nc2.dataset.NetcdfDataset 
> > -in ~/grib2/testfiles/NAM_Alaska_11km_20090920_0600.grib2 -out
> > ~/grib2/testfiles/NAM_Alaska_11km_20090920_0600.nc
> >
> > --Russ
> >
> >
> > Russ Rew                                         UCAR Unidata Program
> > address@hidden                     http://www.unidata.ucar.edu
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: HOT-122007
> > Department: Support netCDF Java
> > Priority: Normal
> > Status: Closed
> >
> 
> 


Ticket Details
===================
Ticket ID: HOT-122007
Department: Support netCDF Java
Priority: Normal
Status: Open