|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
componentlist.sort - Function
1.2.1 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: Flux: Sorts the list so
that the brightest components, as defined by Stokes I, are at the beginning of
the list. Position: Sorts the list so that components that are closest to a
reference position, which is currently fixed at (ra,dec)=(0,0), are at the
beginning of the list. Polarization: Sorts the list so that components with the
largest fractional polarization, sqrt(Q**2+U**2+V**2)/I, 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 |
|
bool
Example
cl.open(’crux.cl’)
cl.sort(’Polarization’)
__________________________________________________________________
More information about CASA may be found at the
CASA web page
Copyright © 2016 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