OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
outcrfty.f
Go to the documentation of this file.
1  subroutine outcrfty
2 
3 c***********************************************************************
4 c subroutine outcrfty creates output datasets for upwelling and
5 c downwelling diffused radiation at the aircraft height when the
6 c lower surface is rough ocean
7 c***********************************************************************
8 c.....include the common blocks
9  implicit real*8 (a-h,o-z)
10  include 'common_all.cmn'
11  real*8 tma(25),tmb(25),tmc(25),tmfd(25),tmfu(25),tms(25)
12  real*8 tmcfd(25),tmcfu(25)
13 c***********************************************************************
14 c
15  lsza=bfr1(35)+0.001
16  do i=1,lsza,1
17  m=msza(i)
18  tma(i)=the0in(m)
19  tmb(i)=fdirc(m)
20  tmc(i)=sbarz(m)
21  tmfd(i)=fdown(m)
22  tmfu(i)=fup(m)
23  tms(i)=oalb(m)
24  tmcfd(i)=cfdown(m)
25  tmcfu(i)=cfup(m)
26  enddo
27 c
28  iprn=14
29  call headr(iprn)
30 c
31  write(iprn,6659)
32  do 5567 i=1,lsza
33  it=msza(i)
34  write(iprn,6660)tma(i),pi
35  write(iprn,6661)tmb(i),tmfd(i)
36  write(iprn,6662)tmfu(i),tms(i)
37  write(iprn,6674)tmcfd(i),tmcfu(i)
38  write(iprn,6668)
39  write(iprn,6664)(the(ir),ir=1,nangl)
40  do is=1,jpart
41  write(iprn,6667)jphi(is),(crftzu(it,ir,is)*pi,ir=1,nangl)
42  enddo
43 5567 continue
44 c
45  iprn=13
46  call headr(iprn)
47 c
48  write(iprn,6659)
49  do 5568 i=1,lsza
50  it=msza(i)
51  write(iprn,6660)tma(i),pi
52  write(iprn,6661)tmb(i),tmfd(i)
53  write(iprn,6662)tmfu(i),tms(i)
54  write(iprn,6674)tmcfd(i),tmcfu(i)
55  write(iprn,6668)
56  write(iprn,6664)(the(ir),ir=1,nangl)
57  do is=1,jpart
58  write(iprn,6667)jphi(is),(crftzd(it,ir,is)*pi,ir=1,nangl)
59  enddo
60 5568 continue
61 c*****format statements*************************************************
62 c
63 6659 format(t1,'fluxes')
64 6660 format(t8,'sza',t32,f6.1,t40,'f0_top',t64,1pe12.4)
65 6661 format(t8,'fdir_btm',t26,1pe12.4,t40,'fdif_btm',t64,1pe12.4)
66 6662 format(t8,'fdif_up',t26,1pe12.4,t40,'hem. ref(ocean)',t64,1pe12.4)
67 6664 format('phi theta',7(2x,f5.1,3x)/3(9x,7(2x,f5.1,3x)/))
68 6667 format(i3,6x,1p7e10.3/3(9x,1p7e10.3/))
69 6668 format(t1,'radiances (f0=pi)')
70 6672 format(t8,'fdif_up',t26,1pe12.4,t40,'sbar',t64,1pe12.4)
71 6674 format(t8,'acrft_fdif_dn',t26,1pe12.4,t40,'acrft_fdif_up',
72  1 t64,1pe12.4)
73 c***********************************************************************
74  return
75  end
76 c************************************************************************
#define real
Definition: DbAlgOcean.cpp:26
#define pi
Definition: vincenty.c:23
subroutine headr(iprn)
Definition: headr.f:2
subroutine outcrfty(tmcfd, tmcfu, ocrftzu, ocrftzd)
Definition: outcrfty.f:2