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

2.4.1 Set the antenna configuration


Description

Set the positions of the antennas. - The name of the telescope will control which voltage pattern is applied to the data (see sm.setvp for details). - The diameter(s) will be written to the antenna subtable but ONLY affect the calculated visibilities in sm.predict if telescope=ALMA,ACA,OVRO, *and* ftmachine=mosaic (see sm.setvp for details). - simutil::readantenna can be used to read an antenna config. file which includes many existing observatories. see help for the simobserve task, or the example below

Arguments





Inputs

telescopename

Name of the telescope we are simulating (determines VP)

allowed:

string

Default:

VLA

’VLA’

x

Vector of x values of all antennas [m]

allowed:

doubleArray

Default:

0

[]

y

Vector of y values of all antennas [m]

allowed:

doubleArray

Default:

0

[]

z

Vector of z values of all antennas [m]

allowed:

doubleArray

Default:

0

[]

dishdiameter

Vector of diameters of all antennas [m]

allowed:

doubleArray

Default:

0

[]

offset

Vector of offset of all antennas [m]

allowed:

doubleArray

Default:

0

[]

mount

Vector of mount types of all antennas (recognized mounts are ’ALT-AZ’, ’EQUATORIAL’, ’X-Y’, ’ORBITING’, ’BIZARRE’

allowed:

stringArray

Default:

ALT-AZ

[]

antname

Vector of names of all antennas

allowed:

stringArray

Default:

A

[]

padname

Vector of names of pads or stations

allowed:

stringArray

Default:

P

[]

coordsystem

Coordinate system of antenna positions [x,y,z], possibilities are ’global’, ’local’ , ’longlat’

allowed:

string

Default:

global

’global’

referencelocation

Reference location [required for local coords] 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

Returns
bool

Example

 
 
    # known antenna configurations are stored in the data repository,  
    # for historical reasons under "alma" even though this includes all  
    # known observatories:  
    configdir=casa.values()[0][’data’]+"/alma/simmos/"  
 
    # please look in that directory if your observatory is present.  
    # if so, simutil can be used to read the file:  
    from simutil import simutil  
    # a simutil must be instantiated to use most methods  
    u=simutil()  
    x,y,z,d,padnames,telescope,posobs = u.readantenna(configdir+"vla.a.cfg")  
 
    # note that readantenna converts the positions to earth-centered  
    # global, from whatever format is in the configuration file, so  
    # coordsystem="global" should be used in setconfig  
    sm.setconfig(telescopename=telescope, x=x, y=y, z=z,  
                 dishdiameter=d.tolist(),  
                 mount=[’alt-az’], antname=padnames,  
                 coordsystem=’global’, referencelocation=pospbs);  

__________________________________________________________________


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