[gradsusr] gradsusr Digest, Vol 14, Issue 32

Zilore Mumba zmumba at gmail.com
Sat Apr 16 05:21:00 EDT 2011


Can someone please advise, I have the impression that one can access model
fields on Nomads servers (like fields on the site at the address below)
directly through GrADS. I am interested in, e.g. precip for 0-6H, 6-12H,
12-18H and 18-24H.
If access is possible through GrADS then one could plot all the required
maps in one script.
Please advise, and would appreciate if a script in this sense exists.
Zilore

http://nomad1.ncep.noaa.gov/cgi-bin/pdisp_gfs0.5.sh?ctlfile=gfs_master_00z.ctl&varlist=on&povlp=noovlp&ptype=map&dir=%2Fgfs20110415

On Fri, Apr 15, 2011 at 8:54 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. Max Value (Andrew Revering)
>   2. Re: regrid data (Arlindo da Silva)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 15 Apr 2011 17:53:58 -0500
> From: "Andrew Revering" <andy at f5data.com>
> Subject: [gradsusr] Max Value
> To: "'GrADS Users Forum'" <gradsusr at gradsusr.org>
> Message-ID: <0a9601cbfbc0$02657fd0$07307f70$@com>
> Content-Type: text/plain; charset="us-ascii"
>
> I'm trying to do a max value plot. I got it to give me coordinates, but
> it's
> not quite right. No matter what the variable is on the map that I'm trying
> to find the max value for, it always gives me coordinates (and plots
> visually) in the far lower left corner of the screen where there are no
> values.
>
>
>
> Here is my code:
>
>
>
>
>
> 'd maxloc(max(tt,x=0,x=1028),y=0,y=768)'
>
> Line=sublin(result,2)
>
> Ygrd=subwrd(line,4)
>
> 'd maxloc(max(tt,y=0,y=768),x=0,x=1028)'
>
> Line=sublin(result,2)
>
> Xgrd=subwrd(line,4)
>
>
>
> 'set x 'xgrd
>
> Lonval = subwrd(result,4)
>
>
>
> 'set y 'ygrd
>
> Latval = subwrd(result,4)
>
>
>
> 'q w2xy 'lonval' 'latval
>
> Xpos = subwrd(result,3)
>
> Ypos = subwrd(result,6)
>
>
>
> Then I go further to plot the coordinate, which works. The printed lat/lon
> is correct for where the marker is, but it is NOT where the max val is. Its
> way down in the lower left corner of the image.
>
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20110415/c091f023/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Fri, 15 Apr 2011 19:07:30 -0400
> From: Arlindo da Silva <dasilva at alum.mit.edu>
> Subject: Re: [gradsusr] regrid data
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <BANLkTinmy3QfmCNbu-vXqNzrun+Dvxd9+Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Apr 14, 2011 at 2:26 AM, Subash Yeggina <subash.yeggina at gmail.com
> >wrote:
>
> > Hi! Arlindo,
> >
> > I am getting the same error as reported above "Syntax Error:  Invalid
> > Operand 're' not a variable or function name".
> >
> > I am using GrDAS *2.0.a9.oga.1 version on Windows XP.  *I have attached
> > the output of q udx in my previous reply as you had posted for the ouput
> of
> > q config and q udx in this e-mail chain.
> >
> >
>  You appear to have an incomplete installation. I'd suggest you start by
> uninstalling this version, downloading the win32 superpack (.exe) from
>
> grads-2.0.a9.oga.1-win32_superpack.exe<
> http://sourceforge.net/projects/opengrads/files/grads2-windows/2.0.a9.oga.1/grads-2.0.a9.oga.1-win32_superpack.exe/download
> >
>
> and reinstalling.
>
>       Arlindo
>
>
>
>
>
>
>
> > What changes I need to make as the changes you have suggested are for
> LINUX
> > OS.
> >
> >
> > Thanks,
> > Subash
> >
> >
> > On Thu, Apr 14, 2011 at 6:40 AM, Arlindo da Silva <dasilva at alum.mit.edu
> >wrote:
> >
> >> On Wed, Apr 13, 2011 at 10:26 AM, Subash Yeggina <
> >> subash.yeggina at gmail.com> wrote:
> >>
> >>> Hi! Arlindo,
> >>>
> >>> I am using GrADS on Windows XP. The version of GrDAS is *2.0.a9.oga.1*
> >>>
> >>> The output of the q udx is attached..
> >>>
> >>>
> >>  What exactly is your problem? Is re() not being found? Click on the
> >> opengrads icon on your desktop and try this:
> >>
> >> ga-> open model
> >> ga-> d re(ps,10)
> >>
> >>    Arlindo
> >>
> >>
> >>
> >>>
> >>> Regards,
> >>> Subash
> >>>
> >>>
> >>> On Wed, Apr 13, 2011 at 7:23 PM, Jackie Yip <zheng.yip at mcgill.ca>
> wrote:
> >>>
> >>>> Hi Arlindo,
> >>>>
> >>>> I'm running GrADs on Mac OS X. As I wasn't the person who installed
> this
> >>>> version of GrADs, I'm not sure which method of installation was used.
> But I
> >>>> hope the following info helps...
> >>>>
> >>>> My q config output:
> >>>>
> >>>> Config: v2.0.a9.oga.1 little-endian readline printim netcdf hdf4-sds
> >>>> hdf5 opendap-grids,stn geotiff shapefile
> >>>> Grid Analysis and Display System (GrADS) Version 2.0.a9.oga.1
> >>>> Copyright (c) 1988-2010 by Brian Doty and the
> >>>> Institute for Global Environment and Society (IGES)
> >>>> This program is distributed WITHOUT ANY WARRANTY
> >>>> See file COPYRIGHT for more information.
> >>>>
> >>>> Built Fri Apr  1 11:31:19 EDT 2011 for i386-apple-darwin10.5.0
> >>>>
> >>>> This version of GrADS has been configured with the following options:
> >>>>   o Built on a LITTLE ENDIAN machine
> >>>>   o Athena Widget GUI DISABLED
> >>>>   o Command line editing ENABLED
> >>>>       http://tiswww.case.edu/php/chet/readline/rltop.html
> >>>>    o printim command for image output ENABLED
> >>>>       http://www.zlib.net
> >>>>       http://www.libpng.org/pub/png/libpng.html
> >>>>       http://www.libgd.org/Main_Page
> >>>>   o GRIB2 interface DISABLED
> >>>>   o NetCDF interface ENABLED
> >>>>       http://www.unidata.ucar.edu/software/netcdf
> >>>>       netcdf 4.1.1 of Apr  1 2011 11:38:40 $
> >>>>   o OPeNDAP gridded data interface ENABLED
> >>>>   o OPeNDAP station data interface ENABLED
> >>>>       http://iges.org/grads/gadoc/supplibs.html
> >>>>       libgadap 2.0
> >>>>   o HDF4 and HDF5 interfaces ENABLED
> >>>>       http://hdfgroup.org
> >>>>       HDF 4.2r5
> >>>>       HDF5 1.8.6
> >>>>   o GeoTIFF and KML/TIFF output ENABLED
> >>>>       http://www.libtiff.org
> >>>>       http://geotiff.osgeo.org
> >>>>   o KML contour output ENABLED
> >>>>   o Shapefile interface ENABLED
> >>>>       http://shapelib.maptools.org
> >>>>
> >>>> q udx or udxt was not recognized as a valid query.
> >>>>
> >>>> Many thanks
> >>>>
> >>>> Zheng
> >>>>
> >>>>
> >>>>
> >>>> On 12 April 2011 19:54, Arlindo da Silva <dasilva at alum.mit.edu>
> wrote:
> >>>>
> >>>>> On Tue, Apr 12, 2011 at 3:22 PM, Jackie Yip <zheng.yip at mcgill.ca
> >wrote:
> >>>>>
> >>>>>> Hi Subash,
> >>>>>>
> >>>>>> I also got the error
> >>>>>> "Syntax Error:  Invalid Operand 're' not a variable or function
> name"
> >>>>>>  even though I used GrADs 2.0.a9.oga.1.
> >>>>>>
> >>>>>> Is the re function an extra thing one must install like a user
> define
> >>>>>> extension? Or is the re function built-in for GrADs 2.0.a9.oga.1.?
> >>>>>>
> >>>>>>
> >>>>> The extension re() is supposed to be include in all opengrads builds.
> >>>>> Which operating system are you using? Please send output of
> >>>>>
> >>>>> ga-> q config
> >>>>> ga-> q udx
> >>>>>
> >>>>>  Did you do the regular opengrads bundle installation ("untar and
> go")
> >>>>> or did you perform the "classic installation"?
> >>>>>
> >>>>>    A
> >>>>>
> >>>>>
> >>>>>
> >>>>>>  Thanks
> >>>>>>
> >>>>>> Zheng
> >>>>>>
> >>>>>> On 12 April 2011 14:32, Subash Yeggina <subash.yeggina at gmail.com
> >wrote:
> >>>>>>
> >>>>>>> Hi! Ismaila,
> >>>>>>>
> >>>>>>> You are correct... The regridding seems to be working if it is done
> >>>>>>> just after the openning of the file.
> >>>>>>>
> >>>>>>> I tried doing the regridding after a few operations, and it failed.
> >>>>>>> Not sure of the logic behind it..
> >>>>>>>
> >>>>>>> have you been able to resolve this issue at ur end.
> >>>>>>>
> >>>>>>> My version of GrADS is *2.0.a9.oga.1.*
> >>>>>>>
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Subash
> >>>>>>>
> >>>>>>>
> >>>>>>> 'open rfpt5.ctl'
> >>>>>>> 'define newgrid = re(pr,0.25)
> >>>>>>>
> >>>>>>> On Fri, Apr 8, 2011 at 12:23 AM, Ismaila Diallo <
> >>>>>>> ismailadiallo64 at yahoo.fr> wrote:
> >>>>>>>
> >>>>>>>> Hi subash,
> >>>>>>>> i've used the re commend and i get this error :
> >>>>>>>>
> >>>>>>>> d re(pr,0.5)
> >>>>>>>> Syntax Error:  Invalid Operand
> >>>>>>>>   're' not a variable or function name
> >>>>>>>>   Error ocurred at column 1
> >>>>>>>> DISPLAY error:  Invalid expression
> >>>>>>>>   Expression = re(pr,0.5)
> >>>>>>>>
> >>>>>>>> I am using grads1.9
> >>>>>>>> Thank in advance
> >>>>>>>> ------------------------------
> >>>>>>>> *From:* Subash Yeggina <subash.yeggina at gmail.com>
> >>>>>>>> *To:* Ismaila Diallo <ismailadiallo64 at yahoo.fr>; GrADS Users
> Forum
> >>>>>>>> <gradsusr at gradsusr.org>
> >>>>>>>> *Sent:* Thursday, April 7, 2011 8:10 PM
> >>>>>>>> *Subject:* Re: [gradsusr] regrid data
> >>>>>>>>
> >>>>>>>> Dear Ismaila,
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> I think you can do it by using the *re *command.
> >>>>>>>>
> >>>>>>>> Ex:
> >>>>>>>>
> >>>>>>>> define newg=re(<variable>,<resolution>).
> >>>>>>>>
> >>>>>>>> For more details you can check
> >>>>>>>> http://opengrads.org/doc/udxt/re/re.html#required_parameters
> >>>>>>>>
> >>>>>>>> <http://opengrads.org/doc/udxt/re/re.html#required_parameters>
> >>>>>>>> Subash
> >>>>>>>>
> >>>>>>>> On Thu, Apr 7, 2011 at 10:57 PM, Ismaila Diallo <
> >>>>>>>> ismailadiallo64 at yahoo.fr> wrote:
> >>>>>>>>
> >>>>>>>> dear grads User,
> >>>>>>>> i've to netcdf files with different resolution. I use grads1.9 and
> i
> >>>>>>>> went to regrids these data at a same resolution with my grads thus
> how
> >>>>>>>> should i do??
> >>>>>>>>
> >>>>>>>> Sincerely
> >>>>>>>> ismaila
> >>>>>>>>
> >>>>>>>> _______________________________________________
> >>>>>>>> gradsusr mailing list
> >>>>>>>> gradsusr at gradsusr.org
> >>>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> gradsusr mailing list
> >>>>>>> gradsusr at gradsusr.org
> >>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> gradsusr mailing list
> >>>>>> gradsusr at gradsusr.org
> >>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Arlindo da Silva
> >>>>> dasilva at alum.mit.edu
> >>>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> gradsusr mailing list
> >>>> gradsusr at gradsusr.org
> >>>> http://gradsusr.org/mailman/listinfo/gradsusr
> >>>>
> >>>>
> >>>
> >>> _______________________________________________
> >>> gradsusr mailing list
> >>> gradsusr at gradsusr.org
> >>> http://gradsusr.org/mailman/listinfo/gradsusr
> >>>
> >>>
> >>
> >>
> >> --
> >> Arlindo da Silva
> >> dasilva at alum.mit.edu
> >>
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >>
> >>
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> >
> >
>
>
> --
> Arlindo da Silva
> dasilva at alum.mit.edu
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20110415/197d39ff/attachment.html
>
> ------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> End of gradsusr Digest, Vol 14, Issue 32
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110416/db839e88/attachment-0003.html 


More information about the gradsusr mailing list