Home > atmlab > geophysics > p2z_simple.m

p2z_simple

PURPOSE ^

P2Z_SIMPLE Simple conversion from pressures to altitudes

SYNOPSIS ^

function z = p2z_simple( p )

DESCRIPTION ^

 P2Z_SIMPLE   Simple conversion from pressures to altitudes

    Pressures are converted to altitudes by assuming that the pressure
    at 0 m is 1000 hPa, and that the pressure drops with a factor of 10
    for each 16 km increase in altitude.

 FORMAT   z = p2z_simple( p )
        
 OUT   z   Altitudes [m]
 IN   p   Pressure [Pa]

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

p2z_simple.m

SOURCE CODE ^

0001 % P2Z_SIMPLE   Simple conversion from pressures to altitudes
0002 %
0003 %    Pressures are converted to altitudes by assuming that the pressure
0004 %    at 0 m is 1000 hPa, and that the pressure drops with a factor of 10
0005 %    for each 16 km increase in altitude.
0006 %
0007 % FORMAT   z = p2z_simple( p )
0008 %
0009 % OUT   z   Altitudes [m]
0010 % IN   p   Pressure [Pa]
0011 
0012 % 2005-05-11   Created by Patrick Eriksson.
0013 
0014 function z = p2z_simple( p )
0015 
0016 z = 16e3 * ( 5 - log10(p) );

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005