OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
anglw.f
Go to the documentation of this file.
1  subroutine anglw
2 c
3 c compute angles and their sin/cos in water
4 c
5 c**********************************************************************
6 c
7 c include the common blocks
8 c
9  implicit real*8 (a-h,o-z)
10  include 'common_all.cmn'
11 c
12 c**********************************************************************
13 c
14 c compute angles of refraction and sin/cos assuming flat ocean
15 c
16  do i=1,jjjj+1
17  cnuw(i)=dsqrt(1.0d0-cmu(i)**2)/xrw
18  rmuw(i)=dasin(cnuw(i))/conv
19  cmuw(i)=dsqrt(1.0d0-cnuw(i)**2)
20  enddo
21 c compute the center of the bin and its sin/cos
22  do i=1,jjjj
23  thew(i)=0.5d0*(rmuw(i)+rmuw(i+1))
24  bmuw(i)=dcos(thew(i)*conv)
25  bnuw(i)=dsqrt(1.0d0-bmuw(i)**2)
26  dmuw(i)=cmuw(i)-cmuw(i+1)
27  dmuws2(i)=0.5d0*(cmuw(i)**2-cmuw(i+1)**2)
28  dnxy=xrw**2+xiw**2
29  yrw=xrw/dnxy
30  yiw=xiw/dnxy
31  call frs(the(i),xrw,xiw,rfair(i))
32  call frs(thew(i),yrw,yiw,rfwat(i))
33  enddo
34  return
35  end
36 c**********************************************************************
subroutine anglw
Definition: anglw.f:2
subroutine frs(xx, xr, xi, rfsea)
Definition: frs.f:2