NRAO Home > CASA > CASA Toolkit Reference Manual
ms.timesort - Function

1.3.1 Sort the main table of an MS by time


Description

This function sorts the main table of the measurement set by the contents of the column TIME 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:

Returns
bool

Example

 
 
 
      ms.open("3C273XC1.MS", nomodify=False)  
      ms.timesort()  
      ms.done()  
 
    This example sorts the main table of 3C273XC1.MS by time.  
    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