1.4.2 Add some simulated components to the list
Description
The simulate function adds simulated components to the list. The simulation
criterion is very simple, all the components added are identical! They are point
sources at the J2000 north pole with a flux in Stokes I of 1 Jy, and zero in the
other polarizations. The spectrum is constant. The ’set’ functions (eg., setflux,
setfreq) can be used to change these parameters to desired ones.
The howmany argument indicates how many components to append to the list.
Arguments
| Inputs |
| ||
| howmany |
| How many components to simulate, greater than zero
| |
| allowed: | int |
|
| Default: | 1 |
|
| log |
| Send a message to the logger
| |
| allowed: | bool |
|
| Default: | true |
|
Example
include ’componentlist.g’
cl := emptycomponentlist(); cl.simulate(2) cl.edit(1); cl.setflux(2, [2.78, 0, 0, 0]); cl.rename(’test.cl’); cl.close(); |
Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu
Copyright © 2008 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
Updated daily during alpha development.