NRAO Home > CASA > CASA Toolkit Reference Manual
simulator.openfromms - Function

2.4.1 Construct a simulator tool using an already existing MS


Description

A simulator tool can either operate on an existing MeasurementSet, predicting and/or corrupting data on the existing uvw coordinates - to do that open the MS with sm.openfromms(msname) or it can be used to create a new MeasurementSet from descriptions of the array configuration and the observational parameters. - to create a new MS, use sm.open(msname).

NOTE: sm.predict assumes the model image units are Jy/pixel, and in fact will overwrite the brightness units of the image itself!

Arguments





Inputs

ms

MeasurementSet to be processed

allowed:

string

Default:

’MS’

Returns
bool

Example

 
    sm.openfromms(’3C273XC1.MS’);  
    sm.predict(’3C273XC1.imagename’);  
    sm.setnoise(simplenoise=’10mJy’);  
    sm.setgain(interval=’100s’, amplitude=0.01);  
    sm.corrupt();  
    sm.close();  

__________________________________________________________________


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