Description
This is used to construct
simulator tools. A simulator tool
can either be instantiated from an existing MeasurementSet, predicting
and/or corrupting data on the given coordinates, or it can be used to
create a fundamentally new MeasurementSet from descriptions of the
array configuration and the observational parameters. This
constructor takes no arguments and is useful for making a simulator
tool which will make a MeasurementSet from scratch. In order to
do this, you must also run
setconfig,
setfield,
setspwindow,
setfeed, and
settimes. Creating the
actual MS is performed by
create. Data can be
predict-ed
and then
corrupted-ed. In this
example, we read in the antenna coordinates from an ASCII file:
Arguments
Returns
simulator tool
Example
tabname := 'VLAC.LOCAL.TAB'; asciifile := 'VLAC.LOCAL.STN'
mytab := tablefromascii(tabname, asciifile);
xx:=[]; yy:=[]; zz:=[]; diam:=[];
xx := mytab.getcol('X');
yy := mytab.getcol('Y');
zz := mytab.getcol('Z');
diam := mytab.getcol('DIAM');
#
mysim := simulator();
# do configuration
posvla := dm.observatory('vla'); # dm.observatory('ALMA') also works!
mysim.setconfig(telescopename='VLA', x=xx, y=yy, z=zz, dishdiameter=diam,
mount='alt-az', antname='VLA',
coordsystem='local', referencelocation=posvla);
mysim.settimes( integrationtime='60s', gaptime='10s', starttime='0h',
stoptime='2h', referencetime='51483.1877d');
dir0 := dm.direction('b1950', '0h0m0.0', '0d0m0.0')
mysim.setfield( row=1, sourcename='Test_A', sourcedirection=dir0,
integrations=1, xmospointings=1, ymospointings=1,
mosspacing='0deg');
dir1 := dm.direction('b1950', '1h0m0.0', '30d0m0.0')
mysim.setfield( row=2, sourcename='Test_B', sourcedirection=dir1,
integrations=1, xmospointings=3, ymospointings=1,
mosspacing='0deg');
mysim.setspwindow( row=1, spwname='XBAND', freq='8.0GHz',
deltafreq='50MHz', freqresolution='50MHz',
nchannels=2, stokes='RR LL');
mysim.setfeed(mode='perfect R L');
mysim.create(newms='NEW1.MS', shadowlimit=0.001,
elevationlimit='8.0deg',autocorrwt=0.2 );
mysim.predict(modelimage='M31.MOD');
mysim.close();
Next: simulatorfromms - Constructor
Up: simulator - Tool
Previous: simulator - Tool
 
Contents
 
Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15