NRAO Home > CASA > CASA Cookbook and User Reference Manual

5.2.8 Parameter spw

The spw parameter selects the spectral windows that will be used to form the image, and possibly a subset of channels within these windows.

The spw parameter is a string with an integer, list of integers, or a range, e.g.

  spw = ’1’                #  select spw 1  
  spw = ’0,1,2,3’          #  select spw 0,1,2,3  
  spw = ’0~3’              #  same thing using ranges

You can select channels in the same string with a : separator, for example

  spw = ’1:10~30’          #  select channels 10-30 of spw 1  
  spw = ’0:5~55,3:5;6;7’   #  chans 5-55 of spw 0 and 5,6,7 of spw 3

This uses the standard syntax for spw selection is given in § 2.3.3. See that section for more options.

Note that the order in which multiple spws are given is important for mode = ’channel’, as this defines the origin for the channelization of the resulting image.


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