[ncl-talk] question about the order of an array and the returning location

Barry Lynn barry.h.lynn at gmail.com
Wed Dec 22 04:59:29 MST 2021


Try this, please:
https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml

On Wed, Dec 22, 2021 at 9:57 AM LIU Chang via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Dear NCL users,
>
> I have a question about the order of an array and the returning location.
>
> I have an x, 1-d array (/25116/). I try to sort them based on ascending
> or descending order, x1. Then I hope to get the location in x1 of every
> value in x.
>
> I have tried the qsort. It seemed that changed x directly.
>
> It will be really appreciated if you could give me some suggestions when
> you are available! Million thanks!!
>
> Best regards,
> Chang LIU
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk



-- 

Barry H. Lynn, Ph.D
Senior Scientist, Lecturer,
The Institute of Earth Sciences,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

Weather It Is, LTD
Weather and Climate Focus
https://weather-it-is.com <http://weather-it-is.com>
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20211222/0cd00303/attachment.html>


More information about the ncl-talk mailing list