opening netcdf WRF files in gradsnc

Yongsheng Chen yochen at UCAR.EDU
Wed Apr 25 12:14:38 EDT 2007


Try "open" instead of "sdfopen" or "xdfopen" first. If it doesn't
work, you may find useful information from Cindy's message
attached below.

Yongsheng


---------- Forwarded message ----------
From: Cindy Bruyere <bruyerec at ucar.edu>
Date: Feb 28, 2007 10:14 AM
Subject: Re: Declaration of Variable
To: GRADSUSR at list.cineca.it


For WRF model output you may want to read this:
        http://www.mmm.ucar.edu/wrf/users/graphics/ARWpost/ARWpost.htm

The WRF model has a staggered grid, so in general you way want to use
the above converter to convert the data to unstaggered grids, which
are easier to deal with.

GrADS 1.9 has a "gradsnc" script that can display the staggered grid
of WRF ARW. But you need 4 .ctl files to display the data correctly.
Inside the ARWpost code there is a utility (under the directory
util/) that you can use to generate the 4 .ctl files.

Cindy


On 4/25/07, northrop grumman <sleetwx at yahoo.com> wrote:
> Has anyone successfully opened a WRF netcdf file
> either using sdfopen or xdfopen. According to the
> grads doc it should be possible but i have reviewed
> the archives and have seen similar problems.
>
> I am running v1.9b4 on a linix box.
>
> When i use the sdfopen <netcdf filename> i get the
> following error:
>
> ^Scaning self-describing
> file:^wrfout_d01_2007-04-19_01:00:00
> SDF file has no discernable X coordinate.
>
> when i use the xdfopen test.wrf.ctl i get the
> following error:
>
> XDFOpen Error:  Unknown keyword in description file
>   --> The invalid description file record is:
>   --> dtype netcdf
>   The data file was not opened.
>
>
> Here is the tewt.wrf.ctl file:
> DSET ^wrfout_d01_2007-04-19_01:00:00
> dtype netcdf
> UNDEF 1.e35
> pdef  63  63 lccr  34.764 -106.942    1.000    1.000
> 35.  35. -106.040   1000.   1000.
> xdef  593 linear -107.9   0.00450450
> ydef  566 linear   33.8   0.00450450
> zdef  134 linear 1 1
> tdef   1  linear  1z19apr2007  1hr
>
>
> According to the documentation, it is required to
> state the dtype as netcdf, if i take it out then it
> complains about the pdef entry.
>
> Any help from the GrADS developers is greatly
> appreciated.
>
> v/r,
> sleet
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>



More information about the gradsusr mailing list