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

4.1.1 Get the spectral grid for the specified spectral window.


Description

Return the spectral grid for the specified spectral window.

Arguments





Inputs

spwid

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

allowed:

int

Default:

0

Returns
Quantity

Example

 
 
print at.getSpectralWindow()[’value’],at.getSpectralWindow()[’unit’]  
 
sg = at.getSpectralWindow()  
for i in range(len(sg[’value’])):  
        print sg[’value’][i], sg[’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