1.4.2 Check if a component is physically plausible
Description
The isphysical function is used to check if the specified components meet a number of
criteria that must be true if the component could be used to model a physical
process. These criteria are:
The “Flux properties” section of the ComponentModels module documentation describes how it is possible to generate a component which has non-zero imaginary value in the Stokes representation.
It is possible to check a number of components at once by specifying the indicies of all the components. The returned value will only be True if all the specified components are physical.
Arguments
| Inputs |
| ||
| which |
| A vector of indices Indices must be between 1 and the
list length
| |
| allowed: | intArray |
|
| Default: | -1 |
|
Example
include ’componentlist.g’
cl := emptycomponentlist(); cl.simulate(2); cl.setflux(1, [10, 1+3i, 1-4i, 0]print cl.isphysical(1:2), polarization=’linear’); print cl.isphysical(1:2) |
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.