[gradsusr] Help in showing the example of using maxloc()

Charles Seman Charles.Seman at noaa.gov
Mon Mar 15 12:36:20 EDT 2010


See Hai Ooi,

Here is a copy of a reply to the GrADS Listserv by Kun-Hsuan Chou...
---
*
*
* Subject: Re: Tracking Hurricanes
* From: Kun-Hsuan Chou <cwujou at TYPHOON.AS.NTU.EDU.TW>
* Date: Fri, 8 Oct 2004 08:03:20 +0800
* To: GRADSUSR at LIST.CINECA.IT
*
* Hi,
*
* I write a sample to track the maxminum wind speed, it should be the 
script that you want.
*
'd maxloc(max(mag(u,v),lon=120,lon=130),lat=15,lat=25)'
  line=sublin(result,2)
  ygrd=subwrd(line,4)
'd maxloc(max(mag(u,v),lat=15,lat=25),lon=120,lon=130)'
  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)
'draw mark 1 'xpos' 'ypos' .2'
---

Hope this helps,
Chuck


See Hai Ooi wrote:
> Dear users,
>
>      Can anyone show me an example of using maxloc() ?
>
>      I wish to obtain the grid coordinates of the following case using NCEP/NCAR Reanalysis data :-
>
>      sdfopen d:\slp.2009.nc
>      set t 1
>      d max(max(slp/100,lon=80,lon=120),lat=40,lat=60))
>      Result value = 1055.5
>      .......
>      d maxloc(maxloc(slp/100,lon=80,lon=120),lat=40,lat=60))
>      Result value = 59
>
>      Where did I go wrong ?
>
>      Regards and thanks.
>
> Ooi
>
>
>       New Email names for you! 
> Get the Email name you&#39;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
>   

-- 

Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.

********************************************************************
 Charles Seman                                Charles.Seman at noaa.gov
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08540-6649            http://www.gfdl.noaa.gov/~cjs/
********************************************************************

"The contents of this message are mine personally and do not necessarily
reflect any position of the Government or NOAA."




More information about the gradsusr mailing list