Re: GRIB2

From: Alex Conselvan de Oliveira <alex_at_nyahnyahspammersnyahnyah>
Date: Tue, 18 Sep 2007 13:42:49 -0300

Hi Mary,

I'm running the version 1.2.0. I could find the grib2_codetables directory
doing as you said:

>>> import Ngl
>>> print Ngl.pynglpath("ncarg")
/usr/lib/python2.4/site-packages/PyNGL/ncarg

wrf_at_operacao0:/discolocal/wrf/tmp$ ls
/usr/lib/python2.4/site-packages/PyNGL/ncarg
colormaps data database fontcaps graphcaps grib2_codetables pynglex
sysresfile

Have some environment variable that I could try to set?

Alex

2007/9/18, Mary Haley <haley_at_ucar.edu>:
>
>
> Hi Alex,
>
> It sounds like you either don't have the latest version of PyNIO
> installed (V1.2.0) or else the GRIB2 codetables have been installed in
> a non-standard location or are just not there for some reason.
>
> Can you tell me more about your Python and PyNIO installation, like
> where you installed the software, and what version of PyNIO do you
> have?
>
> If you are running V1.2.0 of PyNGL/PyNIO, then what does the following
> report:
>
> import Ngl
> print Ngl.pynglpath("ncarg")
>
> Do an "ls" on the path returned from the above command; you should
> see a directory called "grib2_codetables". If you don't, then we need
> to find out what happened to these files.
>
> --Mary
>
> On Tue, 18 Sep 2007, Alex Conselvan de Oliveira wrote:
>
> > Hello all,
> >
> > I'm trying to open a GRIB2 file, and I'm getting the following error
> > message:
> >
> > fatal: environment variable not set
> > fatal: Unable to locate GRIB v2 code tables, cannot continue.
> > fatal:Could not open (fh.0054_tl.press_gr.0p5deg.grb2)
> > NIOError: Unable to open file
> > Traceback (most recent call last):
> > File "/discolocal/wrf/bin/extrai_gfs_0p5.py", line 15, in ?
> > file1 = Nio.open_file(arq1,"r")
> > SystemError: error return without exception set
> >
> > Which environment variable is this? Where should be this code Tables?
> >
> >
> > Thanks in advance,
> > Alex
> >
>
Received on Tue Sep 18 2007 - 10:42:49 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 24 2007 - 11:45:09 MDT