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

[GEMPAK #UGL-929049]: gem to netcdf



Hi Akhil-

This is Don.  The issue is that you need to compile the GempakToCF file
first and then run it using the original instructions.  

However, I modified the GEMPAK grid reader so you can use that class
(included in the netcdf-All.jar) and don't need to compile anythin.  
Download the latest version of netcdfAll-4.0.jar (released May 27) and 
then run:

 java -Xmx512m -classpath netcdfAll-4.0.jar;. 
ucar.nc2.iosp.gempak.GempakGridServiceProvider GEM_FILE.gem NETCDF_FILE.nc

Don Murray

> Many Thanks for the script and libraries you provided, however on running
> them I am getting following erroes
> 
> ./GempakToCF.java /m5/akhil/model/ecmwf/2009052200_ecmf1.gem
> ecmwf_2009052200.nc
> import: unable to open module file
> `/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/list.la': No such file or
> directory.
> import: unable to open module file
> `/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/arraylist.la': No such file
> or directory.
> ./GempakToCF.java: line 5: public: command not found
> ./GempakToCF.java: line 7: syntax error near unexpected token `('
> ./GempakToCF.java: line 7: `    public static void main(String[] args)
> throws Exception {'
> 
> on listing I can see following files
> 
> -rw-r--r--  1 akhil supere  10674755 May 22 16:25 netcdfAll-4.0.jar
> -rwxr--r--  1 akhil supere       785 May 22 16:26 GempakToCF.java
> -rw-r--r--  1 akhil supere         0 May 22 16:40 ucar.nc2.dt.grid.*
> -rw-r--r--  1 akhil supere     58715 May 22 16:40 java.util.List
> -rw-r--r--  1 akhil supere     58720 May 22 16:40 java.util.ArrayList
> 
> please help me if I am missing some libs or files.
> Sincerely
> Akhil
> 
> address@hidden> wrote:
> 
> > Hi Akhilesh,
> >
> > We have a Java API that will read in a GEMPAK grid file and output a netCDF
> > file using CF conventions.
> >
> > It's the netCDF-Java library available at:
> >
> > http://www.unidata.ucar.edu/software/netcdf-java
> >
> > The gempak file reading is part of the netCDF-Java library in the
> > ucar.nc2.iosp.gempak package. The writing is in the ucar.nc2.dt.grid
> > package.
> >
> > I've attached a sample program that will read a gem file and write it out
> > as netCDF.
> >
> > You may need to download the netcdfAll-4.0.jar from this link:
> >
> > ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v4.0/netcdfAll-4.0.jar
> >
> > then run the program as:
> >
> > java -Xmx512m -classpath netcdfAll-4.0.jar;. GempakToCF GEM_FILE.gem
> > NETCDF_FILE.nc
> >
> > the netcdfAll jar file has all the libraries you need contained in it.
> >
> >
> > Michael
> >
> >
> >
> > > Dear GemPak Users and support group,
> > > I was wondering if there is any tool/script available to convert the
> > model
> > > forecasts format (from .gem to netcdf or binary format).
> > > I am new user and i just installed GemPak to Linux 64 bit (CentOS)
> > machine.
> > > Looking forward to hear from the group.
> > > Best wishes and Regards
> > > Akhilesh
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: UGL-929049
> > Department: Support GEMPAK
> > Priority: Normal
> > Status: Open
> >
> 
> 


Ticket Details
===================
Ticket ID: UGL-929049
Department: Support GEMPAK
Priority: High
Status: Closed