Home > atmlab > forwardmodel > geomztan2za.m

geomztan2za

PURPOSE ^

------------------------------------------------------------------------

SYNOPSIS ^

function za = geomztan2za(re,z_plat,z_tan)

DESCRIPTION ^

------------------------------------------------------------------------
 NAME:    geomztan2za

          Converts a vector of geometrical tangent altitudes to zenith 
          angles. A spherical planet is assumed.

 FORMAT:  za = geomztan2za(re,z_plat,z_tan)

 RETURN:  za        Zenith angles corresponding to z_tan.
 IN:      re        Planet radius.
          z_plat    Platform altitude.
          z_tan     Geometrical tangent altitudes. 
------------------------------------------------------------------------

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

geomztan2za.m

SOURCE CODE ^

0001 %------------------------------------------------------------------------
0002 % NAME:    geomztan2za
0003 %
0004 %          Converts a vector of geometrical tangent altitudes to zenith
0005 %          angles. A spherical planet is assumed.
0006 %
0007 % FORMAT:  za = geomztan2za(re,z_plat,z_tan)
0008 %
0009 % RETURN:  za        Zenith angles corresponding to z_tan.
0010 % IN:      re        Planet radius.
0011 %          z_plat    Platform altitude.
0012 %          z_tan     Geometrical tangent altitudes.
0013 %------------------------------------------------------------------------
0014 
0015 % HISTORY: 2004-09-11   Adapted from AMI function geomtan2za
0016 %          2000.12.18   Created by Patrick Eriksson.
0017 
0018 
0019 function za = geomztan2za(re,z_plat,z_tan)
0020 
0021 
0022 za = (pi - asin((re+z_tan)./(re+z_plat)) ) * 180/pi;

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