[gradsusr] Help in showing the example of using maxloc()
Kristen Briggs
kbriggs at fsu.edu
Thu Mar 18 11:59:36 EDT 2010
sorry, i think you may actually need to use max over the x-y domain first...
"define maxwind=max(max(max(wind,lon=0,lon=180),lat=0,lat=90),lev=700,lev=1000)"
-kristen
----- Original Message -----
From: Kristen Briggs <kbriggs at fsu.edu>
Date: Thursday, March 18, 2010 11:50 am
Subject: Re: [gradsusr] Help in showing the example of using maxloc()
To: GrADS Users Forum <gradsusr at gradsusr.org>
> If you have a pressure variable, you might be able to use the
> maskout function in combination with a nested max (not maxloc)
> statement as suggested in Jeffrey Duda's email, for example:
> "define
> maxwind=max(max(max(wind,lev=700,lev=1000),lon=0,lon=180),lat=0,lat=90)" <this should give you a single value>
> "set gxout stat"
> "d maskout(pressure,wind-maxwind)"
> In theory this would make all wind values negative except the
> maximum value and thus all pressure values would be masked out
> except for the one associated with the maximum wind value. The
> gxout stat output might then give you that associated pressure value?
> Kristen Briggs
>
> ----- Original Message -----
> From: Jeffrey Duda <jdduda at iastate.edu>
> Date: Thursday, March 18, 2010 11:05 am
> Subject: Re: [gradsusr] Help in showing the example of using maxloc()
> To: GrADS Users Forum <gradsusr at gradsusr.org>
>
> > Don't use maxloc(), use max(). Something like "d
> > max(wind,lev=700,lev=1000)" should work I think. You might have
> to
> > nest a
> > few "max" statements inside each other for the areal coverage (X
> > and Y
> > directions). I think the examples of the "max" function show
> this
> > prettywell: http://www.iges.org/grads/gadoc/gadocindex.html
> >
> > Jeff Duda
> >
> > On Thu, Mar 18, 2010 at 12:37 AM, sushant puranik
> > <sushantpuranik at gmail.com>wrote:
> >
> > > hi
> > > I also made an attempt to find the maximum wind between 1000hPa
> > to 700hPa
> > > level with the help of maxloc command.
> > > I am able to plot the maximum value of each grid. But in it i
> > also need to
> > > plot the level at which the maximum value belongs, but till
> date
> > i am not
> > > able to solve this problem.
> > >
> > > Do you have any suggestions.
> > >
> > > Thank you in advance
> > >
> > > On Tue, Mar 16, 2010 at 3:46 AM, See Hai Ooi <axl419 at yahoo.com>
> > wrote:>
> > >> Dr Charles Seman,
> > >>
> > >> Yes, the script is what I need. Thank you very much.
> > >>
> > >> Ooi
> > >>
> > >>
> > >> New Email names for you!
> > >> Get the Email name you've always wanted on the new @ymail and
> > @rocketmail.>> Hurry before someone else does!
> > >> http://mail.promotions.yahoo.com/newdomains/aa/
> > >>
> > >> _______________________________________________
> > >> gradsusr mailing list
> > >> gradsusr at gradsusr.org
> > >> http://gradsusr.org/mailman/listinfo/gradsusr
> > >>
> > >
> > >
> > >
> > > --
> > > Sushant Puranik
> > > Junior Research Fellow
> > > Dept. of Atmospheric & Space Sciences,
> > > University of Pune,
> > > Pune-07,
> > > India.
> > >
> > > _______________________________________________
> > > gradsusr mailing list
> > > gradsusr at gradsusr.org
> > > http://gradsusr.org/mailman/listinfo/gradsusr
> > >
> > >
> >
> >
> > --
> > Jeff Duda
> > Iowa State University
> > Meteorology Graduate Student
> > 3134 Agronomy Hall
> > www.meteor.iastate.edu/~jdduda
> >
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
More information about the gradsusr
mailing list