NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Grib-to-NetCDF problems

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_From owner-netcdf-java@xxxxxxxxxxxxxxxx Fri May 20 09:25:50 2005
Received: (from majordo@localhost)
        by unidata.ucar.edu (UCAR/Unidata) id j4KFOL33022894
        for netcdf-java-out; Fri, 20 May 2005 09:24:21 -0600 (MDT)
Received: from dwdmx4.dwd.de (dwdmx4.dwd.de [141.38.3.230])
        by unidata.ucar.edu (UCAR/Unidata) with ESMTP id j4KFOKP3022890
        for <netcdf-java@xxxxxxxxxxxxxxxx>; Fri, 20 May 2005 09:24:21 -0600 
(MDT)
Organization: UCAR/Unidata
Keywords: 200505201524.j4KFOKP3022890
Received: from localhost (localhost [127.0.0.1])
        by node1.csg-cluster.lan (Postfix) with ESMTP id CBB04810841
        for <netcdf-java@xxxxxxxxxxxxxxxx>; Fri, 20 May 2005 15:24:17 +0000 
(UTC)
Received: from localhost ([127.0.0.1])
 by localhost (node1 [127.0.0.1]) (amavisd-new, port 49424) with SMTP
 id 04895-18 for <netcdf-java@xxxxxxxxxxxxxxxx>;
 Fri, 20 May 2005 15:24:17 +0000 (UTC)
Received: from mailhub.dwd.de (unknown [141.38.42.31])
        by node1.csg-cluster.lan (Postfix) with ESMTP id AC221810747
        for <netcdf-java@xxxxxxxxxxxxxxxx>; Fri, 20 May 2005 15:24:17 +0000 
(UTC)
Received: from pdexc1.dwd.de (pdexc1a.dwd.de [141.38.36.132])
        by mailhub.dwd.de (Postfix) with ESMTP id 5B8EF4226A0
        for <netcdf-java@xxxxxxxxxxxxxxxx>; Fri, 20 May 2005 15:24:09 +0000 
(UTC)
Received: by pdexc1.dwd.de with Internet Mail Service (5.5.2653.19)
        id <L23RTRWT>; Fri, 20 May 2005 17:24:09 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
        charset="iso-8859-1"
X-Virus-Scanned: by amavisd-new at outbound.all
Sender: owner-netcdf-java@xxxxxxxxxxxxxxxx
Precedence: bulk

Hi,

i currently try to read existing Grib-1 and Grib-2 data and create files in
the NetCDF format from these data. I ran into some problems:

1.) Most of my Grib files are not supported yet, as the center etc. is not
configured (missing table entries). I tried to add the tables myself, but
then i got an IOException:

GribServiceProvider open = 2004092000_000_2011_200.grib
Unknown Grid Type : 255
java.io.IOException: Negative seek offset
        at java.io.RandomAccessFile.seek(Native Method)
        at ucar.unidata.io.RandomAccessFile.read_(RandomAccessFile.java:399)
        at ucar.unidata.io.RandomAccessFile.seek(RandomAccessFile.java:214)
        at
ucar.unidata.io.RandomAccessFile.skipBytes(RandomAccessFile.java:486)
        at ucar.grib.grib1.Grib1Input.scan(Grib1Input.java:113)
        [...]

2. Trying to read am ECMWF Grib-1 (which should work by default), resulted
in an NegativeArraySizeException:

GribServiceProvider open = ecmwf_00-003
java.lang.NegativeArraySizeException
        at
ucar.grib.grib1.Grib1GridDefinitionSection.<init>(Grib1GridDefinitionSection
.java:160)
        at ucar.grib.grib1.Grib1Input.scan(Grib1Input.java:92)
        at
ucar.nc2.iosp.grib.Grib1ServiceProvider.open(Grib1ServiceProvider.java:50)
        [...]

Any suggestions on these problems?
Besides: i could not find the source code for the classes in grib.jar. Are
they open source? If yes: Where can i get the sources? If no: which license
di you use here?

Thanks for you effort.


Regards,
 Holger Janssen


  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: