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

1.3.1 Concatenate only the subtables of two measurement sets excluding the POINTING table (resulting MAIN and POINTING table not useful)


Description

This function acts like ms.concatenate() with handling==3 (do not concatenate the MAIN and POINTING tables). This is useful for generating, e.g., SPECTRAL_WINDOW and FIELD tables which contain all used SPW and FIELD ids for a set of MSs without having to actually carry out a time-consuming concatenation on disk. The MAIN table in the resulting output MS is that of the original MS, i.e. it is not touched.

Arguments





Inputs

msfile

The name of the measurement set from which the subtables should be appended

allowed:

string

Default:

freqtol

Frequency difference within which 2 spectral windows are considered similar; e.g ’10Hz’

allowed:

any

Default:

variant 1Hz

dirtol

Direction difference within which 2 fields are considered the same; e.g ’1mas’

allowed:

any

Default:

variant 1mas

respectname

If true, fields with a different name are not merged even if their direction agrees

allowed:

bool

Default:

false

Returns
bool

Example

 
 
      tb.open("3C273XC1.MS")  
      tb.copy("TEMP.MS", norows=True)  
      tb.close()  
      ms.open("TEMP.MS", nomodify=False)  
      ms.testconcatenate("3C273XC1.ms", ’1GHz’, ’1arcsec’)  
      ms.testconcatenate("BLLAC.ms", ’1GHz’, ’1arcsec’)  
      ms.done()  
 
    This example makes a copy of the structure of an MS and then  
    appends the subtables data from two  measurement sets to the empty structure.  
    Its going to assume a frequency tolerance of 1GHz and position tolerance  
    of 1 arcsec in deciding if the spw and field in the measurementsets are  
    similar or not.  

__________________________________________________________________


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