|NRAO Home > CASA > CASA Toolkit Reference Manual||
ms.sort - Function
1.3.1 Sort the main table of an MS using a custom set of columns
This function sorts the main table of the measurement set by the contents of the input set of columns in ascending order and writes a copy of the MS with the sorted main table into newmsfile.
If no newmsname is given, a sorted copy of the MS is written into a new MS under the name x.sorted (where x is the name of the original MS). The original MS is then closed and deleted. The new MS is renamed to the name of the original MS and then reopened.
Name of the output measurement set (default: overwrite original)
Vector of column names (case sensitive).
This example sorts the main table of 3C273XC1.MS by ANTENNA1 and then ANTENNA2.
The original MS is overwritten by the sorted one.
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