Re: How to print the value of a variable from lowest to highest or highest to lowest

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 10 2010 - 11:27:12 MST

Hi Ket,
Try using qsort to sort the data:
http://www.ncl.ucar.edu/Document/Functions/Built-in/qsort.shtml

If you have a multi-dimensional array, then you will have to convert it
to a 1D array by using ndtooned before you use qsort..
http://www.ncl.ucar.edu/Document/Functions/Built-in/ndtooned.shtml
Adam

On 12/10/2010 11:21 AM, Ketsiri Leelasakultum wrote:
>
>
> Hello !!
> I want to print my variable from the lowest to highest or highest to lowest.
> Does anyone has experience with this?
> Please suggest.
> Thanks,
> Ket
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Dec 10 11:27:24 2010

This archive was generated by hypermail 2.1.8 : Fri Dec 10 2010 - 14:58:12 MST