[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ua2nc
- Subject: Re: ua2nc
- Date: Thu, 11 Jan 2001 11:16:42 -0700 (MST)
On Thu, 11 Jan 2001, Mauricio Gobbi wrote:
> Hi there -
>
> First off, I have no experience with netCDF (hopefully I won't
> need it). I would like to do a conversion of upper air whatever.wmo
> file into netcdf (then ascii) file. I simply can't find any
> detailed documentation for the decoders.
Hi Mauricio,
The purpose of the ua2nc is to convert WMO formated Upperair products
into NetCDF files. It a specialized format for storing data. The decoders
usually run inside a LDM program pqact.conf file that looks to aux files
in the etc directory. I'm assuming that you are not running an LDM and
want to convert WMO formated Upperair products into ascii text. To do
this would require one to modify ua2nc of all references on NetCDF or to
install the NetCDF package so it doesn't complain.
> It's a bit confusing to my what's the role of the cdlfile,
> snworld.tbl, and how/where those files should be.
These files for your configuration should be in the dir where ua2nc is
being executed.
> I have succesfffuly installed netCDF (+ perl extensions), and the
> decoders. But when I try to convert the example file testdata.wmo,
> using command:
>
> > ua2nc -v ua.cdl /home/gobbi/test_files < testdata.wmo
>
> all I get just the file uaLog.111702.log that starts like:
>
> ncopen: filename "/local/unidata/test/01010200_perl_ua.nc": No such file or
> directory
> Opening /local/unidata/test/01010200_perl_ua.nc with ncid -1
> ncrecinq: ncid -1: Not a netCDF id
> Wmo =72251, Type =TTCC, Rpt: 0200, Trans: 0201, recput =-1
> ncrecinq: ncid -1: Not a netCDF id
> NetCDF::recget result = -1
> ncrecinq: ncid -1: Not a netCDF id
> Wmo =72251, Type =TTDD, Rpt: 0200, Trans: 0201, recput =-1
>
From the errors it appears that the netcdf files are not being generated
by the ncgen program. I would also put ncgen from the NetCDF package in
the run directory.
For your testing, I would run perl in the degugger mode and see what
errors show up,
% perl -d ua2nc -v ua.cdl . "01" < testdata.wmo
You can use the NetCDF ncdump program to look at the created NetCDF files.
Robb...
> and a bunch of lines like the last four above.
>
> Any help will be appreciated.
>
> --
> Mauricio Felga Gobbi Tel: [55][41] 366-1133, ext. 2314
> Simepar - Centro Politecnico FAX: [55][41] 366-2122
> Cx Postal 19100 - Curitiba PR email: address@hidden
> CEP 81531-990 - Brasil http://www.simepar.br/pages/gobbi
>
===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
address@hidden WWW: http://www.unidata.ucar.edu/
===============================================================================