Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: imagerpositiontest.set_tolerance - Function Up: imagerpositiontest - Tool Previous: imagerpositiontest.set_sim_parms - Function


imagerpositiontest.set_simulator - Function



Package synthesis
Module synthesistester
Tool imagerpositiontest


Set an alternate simulator to be used for generating the MS.


Synopsis
set_simulator(sim)


Description
This function is still a bit experimental in that not everything may work is expected, such as when you set up a simulator tool to have multiple fields. Depending on the demand for this functionality, this function can be better integrated into this tool.

Set an alternate simulator to be used for generating the MS. This function allows the user to override the creation of the default simulator with his/her own simulator tool for creating the measurement set. If this function has been called successfully, dotests() will will not call make_default_simulator(). If you do not create the associated measurement set with simulator.create(), this function will do that for you using what should be reasonable defaults (ie, shadowlimit=0.001, elevationlimit='8.0deg', autocorrwt=0.0). You can create the measurement set yourself however, in which case the tool functions will use your measurement set for processing.



Arguments

sim The user-defined simulator to use
Allowed: A valid simulator tool
Default: None


Returns
T or fail


Example
- include 'simulator.g';
# specify a simulator
- xx := [140,180,220,330,440];
- yy := [0,-300,190,-90,60];
- zz := [0,90,-120,40,70];
- diam := 0*[1:5] + 6;
- mysim := simulator();
- mysim.settimes( integrationtime='60s', gaptime='30s', usehourangle=T, 
+ starttime='0s', stoptime='7600s');
- mysim.setfield(row=1, sourcename='my_simulated_source', 
+ sourcedirection=dm.direction('J2000','0h20m30','66d30m29'),
+ integrations=1);
- mysim.setconfig(telescopename='MyScope', x=xx, y=yy, z=zz,dishdiameter=diam,
+ mount='alt-az', antname='MyScope', coordsystem='local', 
+ referencelocation=dm.observatory('bima'));
- mysim.setspwindow(row=1, spwname='8GHz', freq='8GHz',
+ deltafreq='1MHz', freqresolution='1MHz',nchannels=1,stokes='RR LL');
# you can choose not to create the ms yourself in which case
# set_simulator() will do it for you
- mysim.create(newms='my.ms', shadowlimit=0.01, elevationlimit='4.0deg',
+ autocorrwt=0.0);
- include 'imagerpositiontest.g';
- ipt := imagerpositiontest();
- ipt.set_simulator(mysim);
- ipt.set_deconvolution_function('mem');
- ipt.set_mem_parms(algorithm='entropy',niter=25,sigma='0.1Jy');
- ipt.dotests();





next up previous contents index
Next: imagerpositiontest.set_tolerance - Function Up: imagerpositiontest - Tool Previous: imagerpositiontest.set_sim_parms - 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