Description
This function is very similar to create except that it will
need an already created MS. The purpose of this function is to
add in an MS data with from a telescope which is different in
configuration from the one used in create (e.g trying to simulate VLA
and GBT data in one MS file).
Just like create the configuration parameters are set via the
'set' functions. No data is calculated, only the times, (u,v) coordinates,
shadowing information, etc.
The antenna configuration is specified with setconfig.
It is quite simplistic in approach regarding fieldid's and spwid's
etc. It assigned them a different number to what already exist in the
MS even if they are physically the same.
Arguments
shadowlimit |
|
Maximum fraction of geometrically shadowed area before flagging occurs |
|
|
Allowed: |
Double |
|
|
Default: |
1e-6 |
elevationlimit |
|
Minimum elevation angle before flagging occurs |
|
|
Allowed: |
Quantity |
|
|
Default: |
'10deg' |
autocorrwt |
|
Weight to assign autocorrelations (0=none) |
|
|
Allowed: |
Float |
|
|
Default: |
0.0 |
Example
include 'simulator.g'
msim:=simulator();
include 'randomnumbers.g'
mrn:=randomnumbers()
\##RANDOMLY DISTRIBUTING 27 antennas
x:=50*(1:27%5) + mrn.normal(0.0, 10.0, [27])
y:=10*(1:27-(1:27)%5) + mrn.normal(0.0, 10.0, [27])
z:=array(0.0, 27)
msim.setconfig('VLA', x, y, z, array(25.0, 27), array('alt-az', 27),
array('VLA', 27),coordsystem='local')
\#SETTING DEFAULT SPECTRAL WINDOW
msim.setspwindow()
\# SETTING THE FIELD AS A 3 x 3 mosaic.
msim.setfield(1, 'M31SIM', dm.direction('j2000', '20:20:00.00',
'+40.0.0.0'), 1, 3, 3,1.0)
\# SETTING OBSERVATION TIME
msim.settimes('10s', '10s', T, '0s', '1800s')
#CREATING MS
msim.create('sd.ms', autocorrwt=0.0)
\#NOW SETTING SINGLE DISH OBSERVATION
x:=[0.]
y:=x
z:=y
msim.setconfig('GBT', x, y, z, array(100, 1), 'alt-az', 'GBT',
coordsystem='local')
\#SETTING OBSERVING FIELD AS a 9x9 scans
\# note that this will create only a single field entry in the
\#ms.summary but 81 pointings entries are made in the pointing table.
msim.setfield(1, 'M31SIM', dm.direction('j2000', '20:20:00.00', '+40.0.0.0'),
1, 9, 9, 1.0)
\#SETTING SPW and TIME info
msim.setspwindow()
msim.settimes('1s', '1s', T, '0', '600s')
\#ADDING THESE DATA POINTS TO THE MS
msim.add(autocorrwt=1.0)
Next: simulator.setconfig - Function
Up: simulator - Tool
Previous: simulator.create - Function
 
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