|NRAO Home > CASA > CASA Toolkit Reference Manual||
componentlist.sort - Function
1.2.1 Sort the components in a list
The sort function can sort all the components in a list using a variety of criteria. Currently the following criteria are available.
- Sorts the list so that the brightest components, as defined by the abs(I), are at the beginning of the list.
- 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.
- Sorts the list so that components with the largest fractional polarization, , 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.
a string containg the criteria to use to sort the list
Send a message to the logger
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