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

4.1.1 Get the channel frequency for a given grid point for the specified spectral window.


Description

Return the channel frequency for a given grid point for the specified spectral window.

Arguments





Inputs

chanNum

Int standing for channel number (0-based). The value must be >= 0.

allowed:

int

Default:

0

spwid

Int standing for spectral window id (0-based). The value must be >= 0.

allowed:

int

Default:

0

Returns
Quantity

Example

 
 
for spwid in range(at.getNumSpectralWindows()):  
        numCh = at.getNumChan(spwid)  
        print "Spectral window ", spwid, " has ", numCh, " frequency channels"  
        for n in range(numCh):  
                freq = at.getChanFreq(n, spwid)  
                print "Channel ", n, " Frequency:", freq[’value’][0], freq[’unit’]  
 
 

__________________________________________________________________


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