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)
| |
| allowed: | int |
|
| Default: | 0 |
|
| spwid |
| Int standing for spectral window id (0-based)
| |
| allowed: | int |
|
| Default: | 0 |
|
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, freq.units |
Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu
Copyright © 2008 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
Updated daily during alpha development.