|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
componentlist.isphysical - Function
1.2.1 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: 1. I ¿= sqrt(Q**2 + U**2 + V**2) 2.
That the flux, when represented using the Stokes representation, has a zero
imaginary value.
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 0 and one
less than the list length, inclusively
| |
| allowed: | intArray |
|
| Default: | -1 |
|
bool
Example
cl2 = cltool()
cl2.simulate(2)
cl2.setflux(1, value=[10, 1+3j, 1-4j, 0], polarization="linear");
print cl2.isphysical([0,1])
__________________________________________________________________
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