Next: SYMBOL
Up: SIC Language Internal Help
Previous: SIC WINDOW
Contents
Index
SORT
[SIC\]SORT KeyVar [Var1 [... VarN]]
Sort an ensemble of 1-D or 2-D SIC variables by increasing values of the
(1-D only) KeyVar variable. A standard use is to sort a complete GILDAS
table, using
DEFINE TABLE A MyFile WRITE
SORT A[3] A
DELETE /VAR A
As shown in the example, the command handles the case where KeyVar is a
subset of any of the variables to be sorted. However, if there is alias-
ing between any of the Var1 ... VarN variables, the result is unpre-
dictable.
The command can be useful for further use of the COMPUTE LOCATION com-
mand, or plots using GreG. To mimic the behaviour of the (obsolete)
GREG\SORT command, use
SIC\SORT Key Var2 Var3
where Key is any of X Y Z, and Var2 and Var3 the two other ones.
Gildas manager
2014-07-01