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

2.4.1 Set one or more observed fields


Description

Set one or more observed fields, including name and coordinates. Can be invoked multiple times for a complex observation. Must be invoked at least once before sm.observe.

If the distance to the object is set then the phase term includes a curvature for the near-field effect at the center of the image.

Arguments





Inputs

sourcename

Name of source or field (must be specified)

allowed:

string

Default:

SOURCE

’unknown’

sourcedirection

Direction Measure of Coordinates of source to be observed. E.g me.direction(’J2000’, ’30.5deg’,’-20.2deg’).

allowed:

any

Default:

variant

calcode

Calibration code

allowed:

string

Default:

’OBJ’

distance

Distance to the object

allowed:

any

Default:

variant 0m

Returns
bool

Example

 
 
    sm.setconfig(telescopename=telescope, x=x, y=y, z=z,  
                 dishdiameter=d.tolist(),  
                 mount=[’alt-az’], antname=padnames,  
                 coordsystem=’global’, referencelocation=pospbs);  
 
    sm.setspwindow(spwname=’XBAND’, freq=’8GHz’, deltafreq=’50MHz’,  
                   freqresolution=’50MHz’, nchannels=1, stokes=’RR  
                   LL’);  
    dir0 = me.direction(’B1950’,  ’16h00m0.0’, ’50d0m0.000’)  
    sm.setfield(sourcename=’SIMU1’, sourcedirection=dir0);  
    sm.settimes(integrationtime="10s", usehourangle=True,  
                referencetime=me.epoch(’TAI’, "2012/01/01/00:00:00"))  
    sm.observe(sourcename=’SIMU1’, spwname=’XBAND’,  
               starttime=’0s’, stoptime=’3600s’)  
 
 
 

__________________________________________________________________


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