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


next up previous contents index
Next: componentlist.addcomponent - Function Up: componentlist - Tool Previous: componentlist.rename - Function


componentlist.simulate - Function



Package synthesis
Module componentmodels
Tool componentlist


Add some simulated components to the list


Synopsis
simulate(howmany, log)


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

howmany How many components to simulate
Allowed: A positive integer
Default: 1
log Send a message to the logger
Allowed: Boolean
Default: T


Returns
nothing


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();
This example creates a componentlist with two components. The component editor gui is then called on the first component to set the parameters to the desired ones, and the setflux function is used to modify the second one. The list is then saved on disk. I use short scripts like this a lot during testing.

I expect bad things will happen if you save the list to disk, using the close function, before having shut down the editor gui (using the done button) or if you modify the same component using any of the set functions while it is being modified by the gui.





next up previous contents index
Next: componentlist.addcomponent - Function Up: componentlist - Tool Previous: componentlist.rename - 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