Re: Is there any function in NCL to reorder an array ?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sat Oct 22 2011 - 15:22:16 MDT

Please see the documentation. There are multiple sort functons.
Click on "Functions" then do a search for the word sort.
qsort, sqsort
dim_pqsort, dim_pqsort_n

On 10/22/11 10:18 AM, xiang lin wrote:
> Hi, all
>
> Assume an array of random number, Is there any function to
> reorder it in an ascending/descending order?
>
> For example, x = (/1,3,4,20,999,2/), y = ? function(x), then y
> =(/999,20,4,3,2,1/). Thanks!
>
>
> Leo
>
>
> _______________________________________________
> 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 Sat Oct 22 15:22:29 2011

This archive was generated by hypermail 2.1.8 : Mon Oct 24 2011 - 09:29:35 MDT