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

4.1.1 Returns the number of layers in the atmospheric profile.
Arguments





Returns
int

Example

 
 
p = at.getProfile()  
for i in range(at.getNumLayers()):  
        # Print atmospheric profile returned by at.getProfile():  
        # Layer thickness (idx=1), Temperature (idx=2),  
        # Number density of water vapor(idx=4), and Pressure (idx=5)  
        print p[1][’value’][i], p[2][’value’][i], p[4][’value’][i], p[5][’value’][i]  
 

__________________________________________________________________


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