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

4.1.1 get atmospheric profile


Description

Get the atmospheric profile.

Arguments





Outputs

thickness

m

thickness of every atmospheric layer - Quantum with a vector value and unit of length, m

allowed:

doublem

Default:

temperature

K

temperature of every atmospheric layer - Quantum with a vector value and unit of temperature, K

allowed:

doubleK

Default:

watermassdensity

kg.m-3

water vapor mass density content of every atmospheric layer - Quantum with a vector value and unit of kg.m-3

allowed:

doublekg.m-3

Default:

water

m-3

water vapor content of every atmospheric layer - Quantum with a vector value and unit of m-3

allowed:

doublem-3

Default:

pressure

Pa

pressure of every atmospheric layer - Quantum with a vector value and unit of Pascal

allowed:

doublePa

Default:

O3

m-3

O3 of every atmospheric layer - Quantum with a vector value and unit of m-3

allowed:

doublem-3

Default:

CO

m-3

CO of every atmospheric layer - Quantum with a vector value and unit of m-3

allowed:

doublem-3

Default:

N2O

m-3

N2O of every atmospheric layer - Quantum with a vector value and unit of m-3

allowed:

doublem-3

Default:

Returns
string

Example

 
 
p = at.getProfile()  
# returns a tuple of  
# 0 - string listing of layer values, and arrays of layer, 1 - thickness,  
# 2 - temperature, 3 - watermassdensity, 4 - water (number density),  
# 5 - pressure, 6 - O3 (number density), 7 - CO, 8 - N2O  
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]  
 
print p[0]    # "pretty" listing of all layer parameters  
 

__________________________________________________________________


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