Kronos IDL library

Library to retrieve and process CASSINI-RPWS-HFR data

single page | use frames     summary     class     fields     routine details     file attributes

./

uniq_list.pro


Contains the uniq_list function

Author information

Author

Baptiste Cecconi

History

2006/03/07: Created

V1.0: creation of the function

V1.1: added REVERSE_INDICES keyword

2006/03/07: Last Edit

Routines

top source UNIQ_LIST

result = UNIQ_LIST(array [, reverse_indices=sometype])

returns the list of unique values in an array.

Return value

list of unique values in array.

Parameters

array in required type=sometype

the array in which to look for unique values

Keywords

reverse_indices out optional type=sometype

similar to the REVERSE_INDICES keyword in the IDL HISTOGRAM function. Set the REVERSE_INDICES keyword to a named variable, which will contain the list of inidices in the input array corresponding to each value of the output list.

Examples

list = uniq_list(array) list is the list of unique values in array.

list = uniq_list(array,Reverse_indices=Rev) to get the elements of array where the value is list(i) do: array(rev(rev(i):rev(i+1)-1))

Statistics

Lines:
15 lines
Cyclomatic complexity:
1
Modified cyclomatic complexity:
1

File attributes

Modification date: Fri Jan 9 19:59:00 2015
Lines: 15