|
|||
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
Description
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.
Arguments
Inputs |
| ||
newmsname |
| Name of the output measurement set (default: overwrite
original)
| |
| allowed: | string |
|
| Default: |
|
|
columns |
| Vector of column names (case sensitive).
| |
| allowed: | stringArray |
|
| Default: |
|
|
bool
Example
ms.open("3C273XC1.MS", nomodify=False)
ms.sort([’ANTENNA1’,’ANTENNA2’])
ms.done()
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
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search