AIRES library reference: depthfromz.


c
c     Routine directly callable from C/C++ (it could be necessary to
c     append an underscore, "_", to its name depending on the C/C++
c     compiler used).
c
c
      function depthfromz(z, layer)
c
c     Atmospheric depth from vertical altitude. Multilayer atmospheric
c     model.
c     The altitude is measured vertically in meters above sea level
c     (z=0), and the atmospheric depth is given in g/cm2.
c
c     Written by: S. J. Sciutto, La Plata 1996, 2019.
c
c
c     Arguments:
c     =========
c
c     z............... (input, double precision) The vertical altitude
c                      in meters a.s.l.
c     layer........... (output, integer) An integer ranging from zero
c                      to nlayers + 1 indicating the atmospheric layer
c                      corresponding to the given z. Layer 0 is
c                      returned when z is negative, and layer
c                      nlayers + 1 is returned when z is greater than
c                      the maximum significative altitude (top of
c                      atmosphere).
c
c
c     Return value: (double precision) The atmospheric depth (g/cm2).
c     ============
c
c
c<--->


These pages are maintained by
Sergio J. Sciutto
Back to AIRES library index
Back to AIRES home [HOME]