NRAO Home > CASA > CASA Toolkit Reference Manual
atmosphere.getNumChan - Function

4.1.1 return the number of channels of ith band


Description

Return the number of channels of ith band ( passes in as parameter ).

Arguments





Inputs

spwid

Int standing for identifier of bands (0-based). The value must be >= 0.

allowed:

int

Default:

0

Returns
int

Example

 
 
for spwid in range(at.getNumSpectralWindows()):  
        numCh = at.getNumChan(spwid)  
        print "Spectral window ", spwid, " has ", numCh, " frequency channels"  
 

__________________________________________________________________


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