[gradsusr] gradsusr Digest, Vol 24, Issue 43

Jeff Duda jeffduda319 at gmail.com
Wed Feb 29 13:11:30 EST 2012


It looks like you are on the right track.  The only thing I think you still
need to do is include all of the variables in the netCDF file in the VARS
list.  If you have an incomplete list, Grads might not read the data file
correctly and the variables you think you are displaying may not actually
be those variables.  Thus, you should add entries for all of the variables
in the netCDF file.  It will be tenuous, but once you have it, you won't
need to make another control file.

Jeff

On Wed, Feb 29, 2012 at 11:25 AM, Zilore Mumba <zmumba at gmail.com> wrote:

> Jeff,
> Thanks for your suggestion for preparing a control file. I browsed the
> site given by Jennifer and started preparing an xdfopen control file
> below
> But I will need your help to fill in the vars. how do I get these and
> do I have to put in the whole of them?
> What I get from "ncdump -v Times  wrfout_d01_2012-01-27_00:00:00" is
> alos below (a small part not to congest the mail)
>
> DSET ^wrfout_d01_2011-11-19_00:00:00
> TITLE WRF output Rwanda
> OPTIONS YREV
> UNDEF 1.0E15
> XDEF dimension1 110 LINEAR 23.0 0.0625
> YDEF dimension2 100 LINEAR -5.0 0.0625
> TDEF dimension3 6 LINEAR 0Z27JAN2012 6HR
> ZDEF dimension3 10 LEVELS 1000 850 700 500 400 300 250 200
> VARS 3
> GEOPOTENTIAL_HEIGHT=>hgt 18 99 geopotential height
> SPECIFICHUMIDITY=>shum 18 99 specific humidity
> TEMPERATURE=>temp 18 99 temperature
> ENDVARS
>
>        float TSK(Time, south_north, west_east) ;
>                TSK:FieldType = 104 ;
>                TSK:MemoryOrder = "XY " ;
>                TSK:description = "SURFACE SKIN TEMPERATURE" ;
>                TSK:units = "K" ;
>                TSK:stagger = "" ;
>                TSK:coordinates = "XLONG XLAT" ;
>        float P_TOP(Time) ;
>                P_TOP:FieldType = 104 ;
>                P_TOP:MemoryOrder = "0  " ;
>                P_TOP:description = "PRESSURE TOP OF THE MODEL" ;
>                P_TOP:units = "Pa" ;
>                P_TOP:stagger = "" ;
>        float T00(Time) ;
>                T00:FieldType = 104 ;
>                T00:MemoryOrder = "0  " ;
>                T00:description = "BASE STATE TEMPERATURE" ;
>                T00:units = "K" ;
>                T00:stagger = "" ;
>        float P00(Time) ;
>                P00:FieldType = 104 ;
>                P00:MemoryOrder = "0  " ;
>                P00:description = "BASE STATE PRESURE" ;
> Thanks
>
> On Tue, Feb 28, 2012 at 9:38 PM,  <gradsusr-request at gradsusr.org> wrote:
> > Send gradsusr mailing list submissions to
> >        gradsusr at gradsusr.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >        http://gradsusr.org/mailman/listinfo/gradsusr
> > or, via email, send a message with subject or body 'help' to
> >        gradsusr-request at gradsusr.org
> >
> > You can reach the person managing the list at
> >        gradsusr-owner at gradsusr.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of gradsusr digest..."
> >
> >
> > Today's Topics:
> >
> >   1. Re: netcdf to grib (Jeff Duda)
> >   2. Re: Error when using VINT function (Jeff Duda) (Jennifer Adams)
> >   3. Re: Grads 2.0.1 Compilation Problem (Spencer Ogden)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 28 Feb 2012 13:30:02 -0600
> > From: Jeff Duda <jeffduda319 at gmail.com>
> > Subject: Re: [gradsusr] netcdf to grib
> > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > Message-ID:
> >        <CAAig09CoVJdD6wLnRhbLHRnczOJiWJrQSXpzm5i95LMDy7wi=
> A at mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > I'm quite accustomed to viewing WRF output in Grads.  I used ARWpost as
> > well.  It worked for my system, so I didn't have to worry about opening
> > most netCDF files directly.  However, I have had to open them recently.
>  I
> > had the same problem, so I wrote a full-on control file for the netCDF
> > file.  The page Jennifer linked contains links to instructions for
> writing
> > a descriptor file for your WRF output so you can view it in Grads.  If
> you
> > have any problems with that, I can help you.
> >
> > As far as the reason the error comes with sdfopen, that remains a mystery
> > to me since lat/lon data are included in standard WRF output.
> >
> > Jeff Duda
> >
> > On Tue, Feb 28, 2012 at 1:24 PM, Jennifer Adams <jma at cola.iges.org>
> wrote:
> >
> >> Have a look at the documentation page
> >> http://iges.org/grads/gadoc/SDFdescriptorfile.html
> >> --Jennifer
> >>
> >> On Feb 27, 2012, at 12:55 AM, Zilore Mumba wrote:
> >>
> >> Excuses for posting what may be a very simple issue or an issue
> >> already tackled. I have searched and have not found the answer. I have
> >> WRf output in NetCdf format. WRF have a software ARWpost to convert
> >> the files for working in grads. This software is too heavy for my
> >> system.
> >> With sdfopen I get the error below.
> >> Is there a solution to this?
> >> Thanks for assistance
> >> Zilore
> >> ga-> sdfopen wrfout_d01_2011-11-19_00:00:00
> >> Scanning self-describing file:  wrfout_d01_2011-11-19_00:00:00
> >> gadsdf: SDF file has no discernable X coordinate.
> >> ga->
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >>
> >>
> >> --
> >> Jennifer M. Adams
> >> IGES/COLA
> >> 4041 Powder Mill Road, Suite 302
> >> Calverton, MD 20705
> >> jma at cola.iges.org
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >>
> >>
> >
> >
> > --
> > Jeff Duda
> > Graduate research assistant
> > University of Oklahoma School of Meteorology
> > Center for Analysis and Prediction of Storms
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20120228/ee215a25/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Tue, 28 Feb 2012 14:35:36 -0500
> > From: Jennifer Adams <jma at cola.iges.org>
> > Subject: Re: [gradsusr] Error when using VINT function (Jeff Duda)
> > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > Message-ID: <66ACEF4B-5C94-49D6-855D-7123A9EDFC4C at cola.iges.org>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > Mike,
> > You need to provide more information. When reporting bugs or problems,
> please include the following information in your post:
> > The version of GrADS you are running (it is a good idea to include all
> the output from 'q config')
> > Any specifics about the platform you are running GrADS on (e.g. Linux,
> Mac OSX, Windows, etc.)
> > A brief description of the problem
> > The simplest possible set of commands or script that illustrates the
> problem
> > The error messages from GrADS
> > In order to reproduce your seg fault, it will likely be necessary for
> you to also provide information about the data you are using, including a
> data descriptor file and a source for the data files.
> > --Jennifer
> >
> >
> > On Feb 27, 2012, at 2:49 AM, Michael Bala wrote:
> >
> >> Thanks for the response Jeff!
> >>
> >> Just changed psfc to hPa/mb (since upper bound was in hPa). But now I
> get a segmentation fault.
> >>
> >> I set time to some random hour (set t 6) and the upper bound value to
> 500. I also did "ulimit -s unlimited" before running GrADS.
> >>
> >> Again, thanks for the help.
> >>
> >>
> >> Mike
> >>
> >> Date: Thu, 23 Feb 2012 08:23:19 -0600
> >> From: Jeff Duda <jeffduda319 at gmail.com>
> >> Subject: Re: [gradsusr] Error when using VINT function
> >> To: GrADS Users Forum <gradsusr at gradsusr.org>
> >> Message-ID:
> >>        <CAAig09CHij23w+1iS42FpsGu=_
> qOQ_sBCXQrdDm1+Jx-V8wfDg at mail.gmail.com>
> >> Content-Type: text/plain; charset="iso-8859-1"
> >>
> >> It's either a memory error (try narrowing your time/spatial dimension
> >> environment), or one of your variables was typed in wrong.  Also, make
> sure
> >> psfc is in the same units as your upper pressure bound (mb).
> >>
> >> Jeff Duda
> >>
> >> On Thu, Feb 23, 2012 at 6:26 AM, Michael Bala <ekimalab at gmail.com>
> wrote:
> >>
> >>
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >
> > --
> > Jennifer M. Adams
> > IGES/COLA
> > 4041 Powder Mill Road, Suite 302
> > Calverton, MD 20705
> > jma at cola.iges.org
> >
> >
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20120228/412798ce/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Tue, 28 Feb 2012 14:38:56 -0500
> > From: Spencer Ogden <spencer at spencerogden.com>
> > Subject: Re: [gradsusr] Grads 2.0.1 Compilation Problem
> > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > Message-ID: <4F4D2D50.2030407 at spencerogden.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > Hi Jennifer,
> >
> > Thanks for your response. I have checked versions 3.6.3, 4.1.1 and 3.5.1
> > (which is the oldest available) of netcdf, and I haven't found this
> > definition. Do you know what version of netcdf GraDS requires?
> >
> > Thanks,
> >
> > Spencer
> >
> > On 2/28/2012 2:08 PM, Jennifer Adams wrote:
> >> Hi, Spencer --
> >> You are correct, you must not have the right version of netcdf.h in
> >> your supplibs (or wherever your netcdf4 build is located). This is
> >> where NC_CHUNKED is defined:
> >>
> >> > grep NC_CHUNKED ~/supplibs/include/netcdf/netcdf.h
> >> #define NC_CHUNKED    0
> >>
> >> --Jennifer
> >>
> >>
> >> On Feb 24, 2012, at 12:51 PM, Spencer Ogden wrote:
> >>
> >>> I'm trying to get into grads for the analysis of ocean wind patterns.
> >>> I've worked through a few compilation problems, but have hit a road
> >>> block and I wasn't able to turn up any similar problems on Google.
> >>>
> >>> I'm running on Gentoo and I have manually installed libpng 1.2.34 and
> >>> g2clib 1.2.3. This has allowed configure to enable grib2 and netcdf.
> I'm
> >>> running in to a problem with the compile though. When compiling gaio.c,
> >>> NC_CHUNKED throws an error as an undeclared symbol. Seems like this
> >>> could be a case of having the wrong version of a header, but I haven't
> >>> been able to track down where I should start looking.
> >>>
> >>> Thanks for any advice,
> >>>
> >>> Spencer
> >>>
> >>> Here's the last bit of ./configure:
> >>>
> +=========================================================================+
> >>>    GrADS 2.0.1 : Built Fri Feb 24 11:52:02 EST 2012 for
> i686-pc-linux-gnu
> >>>
> >>>
> +=========================================================================+
> >>>
> >>>   +-------------------------------+
> >>>   |                               |
> >>>   |  GrADS will be built with:    |
> >>>   |                               |
> >>>   |  - GUI disabled               |
> >>>   |  + readline enabled           |
> >>>   |  + geotiff enabled            |
> >>>   |  - shapefile disabled         |
> >>>   |  + printim enabled            |
> >>>   |  + grib2 enabled              |
> >>>   |  - hdf4 disabled              |
> >>>   |  + hdf5 enabled               |
> >>>   |  + netcdf-4 enabled           |
> >>>   |  - OPeNDAP disabled           |
> >>>   |                               |
> >>>   +-------------------------------+
> >>>
> >>> `make` ouput:
> >>> gcc -DHAVE_CONFIG_H -I. -I. -I.  -I/usr/include      -I/usr/include
> >>> -I/usr/include -I/usr/include/hdf    -g -O2 -rdynamic -c gaio.c
> >>> gaio.c: In function 'garead':
> >>> gaio.c:753:3: warning: format '%ld' expects type 'long int', but
> >>> argument 4 has type 'size_t'
> >>> gaio.c:753:3: warning: format '%ld' expects type 'long int', but
> >>> argument 4 has type 'size_t'
> >>> gaio.c: In function 'gancsetup':
> >>> gaio.c:2446:17: error: 'NC_CHUNKED' undeclared (first use in this
> >>> function)
> >>> gaio.c:2446:17: note: each undeclared identifier is reported only once
> >>> for each function it appears in
> >>> gaio.c:2462:3: warning: format '%ld' expects type 'long int', but
> >>> argument 4 has type 'size_t'
> >>> gaio.c:2462:3: warning: format '%ld' expects type 'long int', but
> >>> argument 4 has type 'size_t'
> >>> make[2]: *** [gaio.o] Error 1
> >>> make[2]: Leaving directory `/home/spencer/grads-2.0.1/src'
> >>> make[1]: *** [all] Error 2
> >>> make[1]: Leaving directory `/home/spencer/grads-2.0.1/src'
> >>> make: *** [all-recursive] Error 1
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> gradsusr mailing list
> >>> gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
> >>> http://gradsusr.org/mailman/listinfo/gradsusr
> >>
> >> --
> >> Jennifer M. Adams
> >> IGES/COLA
> >> 4041 Powder Mill Road, Suite 302
> >> Calverton, MD 20705
> >> jma at cola.iges.org <mailto:jma at cola.iges.org>
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20120228/505d3229/attachment.html
> >
> > ------------------------------
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> >
> >
> > End of gradsusr Digest, Vol 24, Issue 43
> > ****************************************
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>



-- 
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120229/0a153084/attachment-0003.html 


More information about the gradsusr mailing list