1.4.2 Sort the components in a list
Description
The sort function can sort all the components in a list using a variety of criteria.
Currently the following criteria are available.
,
are
at
the
front
of
the
list.
Components
where
I = 0
are
placed
at
the
end
of
the
list.The parsing of the string containg the sorting criteria is case insensitive. You cannot sort a list that has been opened read only.
Arguments
| Inputs |
| ||
| criteria |
| a string containg the criteria to use to sort the list
| |
| allowed: | string |
|
| Default: | Polarization Position Flux |
|
| log |
| Send a message to the logger
| |
| allowed: | bool |
|
| Default: | true |
|
Example
include ’componentlist.g’
cl := componentlist(’crux.cl’); cl.sort(’Polarization’); |
Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu
Copyright © 2008 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search
Updated daily during alpha development.