Re: getting rid of repeated values in an array

From: <Oliver.Fuhrer_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 09 2009 - 07:31:39 MST

Hi ncl-talk,

A unique_vals would definitively be a candidate for a NCL built-in
function. Ideally, it will also work for non-numeric datatypes such as
strings. We have such a (slow!) function in our local NCL library.

Cheers,
Oli

> -----Original Message-----
> From: ncl-talk-bounces@ucar.edu
> [mailto:ncl-talk-bounces@ucar.edu] On Behalf Of Mary Haley
> Sent: Dienstag, 3. November 2009 19:02
> To: Trivej, Panu
> Cc: ncl-talk@ucar.edu
> Subject: Re: getting rid of repeated values in an array
>
>
> Hi,
>
> I could have sworn we had a function for this. Since not,
> I've attached a sample script that contains a function called
> "unique_vals".
>
> The main code creates a dummy integer array, and then it uses
> your sample array below.
>
> Run with:
>
> ncl unq.ncl
>
> --Mary
>
>
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 9 07:31:14 2009

This archive was generated by hypermail 2.1.8 : Mon Nov 15 2010 - 12:48:08 MST