|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
8.3.3.5 Scantable Mathematics
It is possible to do simple mathematics directly on scantables from the CASA command line using the +,-,*,∕ operators as well as their cousins + =,- =,* =,∕ =.
CASA <11>: scan *= 1.05 # scale spectrum by 1.05
Operands can be a numerical value and one- or two-dimensional Python list. For list operand, its shape should be conform with the shape of spectral data stored in the scantable. Mathematics between two scantables is also available. In that case, scantables must be conform with each other.
NOTE: In scantable mathematics, scantable must be put on the left. For example:
CASA<13>: scan2=2.0+scan1 # this causes an error
More information about CASA may be found at the
CASA web page
Copyright © 2010 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