|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
simulator.setoptions - Function
2.4.1 Set various processing options
Description
Set options for predict. See also imager help.
To simulate single dish data, use gridft=SD and gridfunction=PB.
To invoke primary beam convolution in the uv domain, use ftmachine=”mosaic”. This is the only option that allows heterogeneous array simulation - see the example below and help sm.setvp for more details.
Arguments
Inputs |
| ||
ftmachine |
| Fourier transform machine. Possibilities are ’ft’, ’sd’,
’mosaic’ | |
| allowed: | string |
|
| Default: | ft ’ft’ |
|
cache |
| Size of gridding cache in complex pixels
| |
| allowed: | int | |
| Default: | 0 |
|
tile |
| Size of a gridding tile in pixels (in 1 dimension)
| |
| allowed: | int | |
| Default: | 16 |
|
gridfunction |
| Gridding function. String: ’SF’—’BOX’—’PB’
| |
| allowed: | string |
|
| Default: | SF ’SF’ |
|
location |
| Location used in phase rotations. Position Measure of
Coordinates of array location.
E.g me.position(’ITRF’, ’30.5deg’, ’-20.2deg’, ’6000km’)
or me.observatory(’ALMA’)
| |
| allowed: | any |
|
| Default: | variant ALMA position measure |
|
padding |
| Padding factor in image plane (>=1.0)
| |
| allowed: | double |
|
| Default: | 1.3 |
|
facets |
| Number of facets
| |
| allowed: | int |
|
| Default: | 1 |
|
maxdata |
| Maximum data to write to a single TSM file (MB)
| |
| allowed: | double |
|
| Default: | 2000.0 |
|
wprojplanes |
| Number of projection planes when using wproject as the
ft-machine
| |
| allowed: | int |
|
| Default: | 1 |
|
bool
Example
# set some options
sm.setoptions(cache=10000000, tile=32, gridfunction=’BOX’, me.location(’vla’))
# set ftmachine to invoke uv-domain primary beam convolution, and use that
# to simulate a heterogeneous ALMA 7m+12m array.
from simutil import simutil
u=simutil()
configdir=casa.values()[0][’data’]+"/alma/simmos/"
x,y,z,d,padnames,telescope,posobs = u.readantenna(configdir+"alma.cycle5.1.cfg")
x2,y2,z2,d2,padnames2,telescope2,posobs2 = u.readantenna(configdir+"aca.cycle5.cfg")
sm.open("new.het.alma.ms")
sm.setconfig(telescopename="ALMA",
x=np.append(x,x2),y=np.append(y,y2),z=np.append(z,z2),
dishdiameter=np.append(d,d2),
mount=[’alt-az’], padname=np.append(padnames,padnames2).tolist(),
coordsystem=’global’, referencelocation=posobs)
sm.setspwindow(spwname="band1", freq="330GHz",
deltafreq="1GHz",freqresolution="1GHz",nchannels=1,stokes=’XX YY’)
sm.setfeed(mode=’perfect X Y’,pol=[’’])
sm.setlimits(shadowlimit=0.01, elevationlimit=’10deg’)
sm.setauto(0.0)
sm.setfield(sourcename="src1",
sourcedirection="ICRS 10:00:00.00 -23.01.22",
calcode="OBJ", distance=’0m’)
sm.setfield(sourcename="src2",
sourcedirection="ICRS 10:00:00.00 -23.01.32",
calcode="OBJ", distance=’0m’)
sm.settimes(integrationtime="10s", usehourangle=True,
referencetime=me.epoch(’TAI’, "2012/01/01/00:00:00"))
etime="600s"
sm.observe(sourcename="src1", spwname="band1",
starttime=qa.mul(-1,qa.quantity(etime)),
stoptime=qa.quantity(0,"s"));
sm.observe(sourcename="src2", spwname="band1",
starttime=qa.quantity(0,"s"),
stoptime=qa.quantity(etime));
sm.setoptions(ftmachine="mosaic")
sm.predict(imagename="point.ra10.image")
sm.done()
__________________________________________________________________
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