nraonrao
 
NRAO Home > CASA > CasaRef
ms.concatenate - Function

1.2.1 Concatenate two measurement sets
Description

This function concatenates two measurement sets together.

The data is copied from the measurement set specified in the msfile arguement to the end of the measurement set attached to the ms tool. If a lot of data needs to be copied this function may take some time. You need to open the measurement set for writing in order to use this function.

This function is new to the ms tool and currently requires that both the measurement sets involved in the concatenation were originally derived from of a UVFITS file (and converted using the fromfits function).

Arguments





Inputs

msfile

The name of the measurement set to append

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

Returns
bool

Example

 
      ms.open("3C273XC1.MS", nomodify=False)  
      ms.concatenate("BLLAC.ms", ’1GHz’, ’1arcsec’)  
      ms.done()  
    

This example appends the data from the BLLAC measurement set to the end of the 3C273 measurement set. 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.

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.