Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

RE: awips grid files question (fwd)



------- Forwarded Message

Date:    Fri, 02 Apr 2004 11:14:42 -0700
From:    "Lindsey, Daniel" <Lindsey@xxxxxxxxxxxxxxxxxx>
To:      "Russ Rew" <russ@xxxxxxxxxxxxxxxx>
Subject: RE: awips grid files question 

Thanks for your help!  The problem has been solved.

-Dan

-----Original Message-----
From: Russ Rew [mailto:russ@xxxxxxxxxxxxxxxx]
Sent: Wednesday, March 24, 2004 5:03 PM
To: Lindsey, Daniel
Subject: Re: awips grid files question 


Hi Dan,

> My goal is to start with AWIPS netcdf Grid files, and be able to
> read certain data from them into a FORTRAN program.  In particular,
> I need model forecast dew point profiles for certain lat/lons.  I've
> played around with ncdump, but the data within each netcdf file are
> not organized in a logical way, so I don't know exactly which
> numbers output from a "ncdump -v rh <filename>" I need...i.e., which
> numbers correspond to the particular forecast and lat/lon I need.
> 
> Is this even possible?  If not, is there software or a decoder which
> will extract this data from an AWIPS netcdf Grid file?

If you use the "full annotation option" of ncdump, for example

  ncdump -v rh -ff <filename>

you will get output annotated with comments that identify each value
that will make clearer the order in which the values are displayed.

You should be able to access the dew point profiles for certain
lat/lons by determining the indices corresponding to those lat lons
and using NF_GET_VAR_DOUBLE() for example to get an array of the
values you want at different levels, where lat/lon and time are fixed.

If you have an example that doesn't seem to work, you can send a
specific question about it to support@xxxxxxxxxxxxxxxx and we will try
to help.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
russ@xxxxxxxxxxxxxxxx          http://www.unidata.ucar.edu/staff/russ

------- End of Forwarded Message


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690