AIRES library reference: zfromdepth.


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 zfromdepth(depth, layer)
c
c     Altitude from atmospheric depth. Multilayer atmospheric model.
c     The altitude is measured in meters above sea level (z=0), and the
c     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     depth........... (input, double precision) Atmospheric depth in
c                      g/cm2.
c     layer........... (output, integer) An integer ranging from zero
c                      to nlayers + 1 indicating the atmospheric layer
c                      corresponding to the given depth. Layer 0 is
c                      returned when the altitude is negative, and
c                      layer nlayers + 1 is returned when depth is
c                      negative (no physical meaning).
c
c
c     Return value: (double precision) The vertical altitude in meters
c     ============  a.s.l.
c
c
c<--->


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