Re: Top 10

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 02 Jun 2009 09:08:26 -0600

I would say ....

http://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml

You will have to reorder.

     prc = precip(lat|:,lat|:,time|:)

     ip = dim_pqsort(prc, 2)

Top 10 ..

     prc(lat,lon,0:9)

-----
Note the next release of NCL will have new function that will
not require reordering:

http://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort_n.shtml

Michael Notaro wrote:
> What's the most efficient way to find the top 10 precipitation
> events' amounts
> given precip(time,lat,lon)?
>
> Thanks, Michael
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jun 02 2009 - 09:08:26 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 03 2009 - 12:52:48 MDT