|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
8.3.3.3 Masks
Several functions (fitting, baseline subtraction, statistics, etc) may be run on a range of channels (or velocity/frequency ranges). You can create masks of this type using the create_mask function:
spave.set_unit(’channel’)
rmsmask=spave.create_mask([5000,7000]) # create a region over channels 5000-7000
rms=spave.stats(stat=’rms’,mask=rmsmask) # get rms of line free region
rmsmask=spave.create_mask([3000,4000],invert=True) # choose the region
# *excluding* the specified channels
The mask is stored in a simple Python variable (a list) and so may be manipulated using an Python facilities.
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