OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
chapman.f
Go to the documentation of this file.
1 c subroutine chapmn
2  subroutine chapmn(x,y,dchap)
3 c
4 c**********************************************************************
5  implicit real*8 (a-h,o-z)
6  real*8 dp,dz,dy,dsum,dchap,dt,dsq,x,pi,theta,ax(5)
7  data ax /1.061405429d+00,-1.453152027d+00,
8  1 1.421413741d+00,-0.284496736d+00,
9  2 0.254829592d+00/, dp /0.3275911d+00/
10  pi = 3.141592654d0
11  theta = pi*theta/180.0d0
12  dy = y
13  dz = dy*dsqrt(0.5d0*x)
14  dsq = dsqrt(0.5*pi*x)
15  dt = 1.0e+00/ (1.00e+00 + dp * dz)
16  dsum = dt * ax(1)
17  if(dy.ge.0.2d0)go to 220
18  do 210 i =2,5
19  210 dsum = dt*(ax(i) + dsum)
20  dchap = dsum*dsq
21 
22  go to 150
23  220 dt = 0.5d+00/(dz**2)
24  dchap = (1.0d+00-dt*(1.0d+00 - 3.0d+00*dt*
25  1 (1.0d+00 - 5.0d+00*dt)))/dy
26  150 return
27  end
28 c***********************************************************************
subroutine chapmn(x, y, dchap)
Definition: chapman.f:3
#define real
Definition: DbAlgOcean.cpp:26
#define pi
Definition: vincenty.c:23