OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
outcrftz.f
Go to the documentation of this file.
1  subroutine outcrftz(tmcfd,tmcfu,ocrfttup,ocrftzu,ocrfttdn,ocrftzd)
2 c
3 c subroutine outcrftz creates output datasets for upwelling and
4 c downwelling diffused radiation at the aircraft height when the
5 c lower surface is a lambertian reflector
6 c***********************************************************************
7 c.....include the common blocks
8  implicit real*8 (a-h,o-z)
9  include 'afrt_rt2.cmn'
10  real*8 tma(nsz),tmb(nsz),tmc(nsz),tmfd(nsz),tmfu(nsz)
11  real*8 tmcfd(nsz),tmcfu(nsz),ocrfttup(nph,nth,nsz),
12  1 ocrftzu(nph,nth,nsz),ocrfttdn(nph,nth,nsz),ocrftzd(nph,nth,nsz)
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  tmcfd(i)=cfdown(m)
24  tmcfu(i)=cfup(m)
25  enddo
26 c
27  iprn=14
28  call headr(iprn)
29 c
30  do 5567 i=1,lsza
31  it=msza(i)
32  write(iprn,6659)
33  write(iprn,6660)tma(i),pi
34  write(iprn,6661)tmb(i),tmfd(i)
35  write(iprn,6672)tmfu(i),tmc(i)
36  write(iprn,6674)tmcfd(i),tmcfu(i)
37  write(iprn,6668)
38  write(iprn,6664)(the(ir),ir=1,(nx-1))
39  do is=1,jpart
40  write(iprn,6667)jphi(is),(crftzu(it,ir,is)*pi,ir=1,(nx-1))
41  do ir=1,(nx-1)
42  ocrftzu(is,ir,it) = crftzu(it,ir,is)*pi
43  enddo
44  enddo
45  write(iprn,6665)
46  write(iprn,6664)(the(ir),ir=1,(nx-1))
47 c do is=1,jpart
48  is=1
49  write(iprn,6667)jphi(is),(crfttup(it,ir,is)*pi,ir=1,(nx-1))
50  do ir=1,(nx-1)
51  ocrfttup(is,ir,it) = crfttup(it,ir,is)*pi
52  enddo
53 c enddo
54 5567 continue
55 c
56  iprn=13
57  call headr(iprn)
58 c
59  do 5568 i=1,lsza
60  it=msza(i)
61  write(iprn,6659)
62  write(iprn,6660)tma(i),pi
63  write(iprn,6661)tmb(i),tmfd(i)
64  write(iprn,6672)tmfu(i),tmc(i)
65  write(iprn,6674)tmcfd(i),tmcfu(i)
66  write(iprn,6668)
67  write(iprn,6664)(the(ir),ir=1,nangl)
68  do is=1,jpart
69  write(iprn,6667)jphi(is),(crftzd(it,ir,is)*pi,ir=1,nangl)
70  do ir=1,nangl
71  ocrftzd(is,ir,it) = crftzd(it,ir,is)*pi
72  enddo
73  enddo
74  write(iprn,6665)
75  write(iprn,6664)(the(ir),ir=1,nangl)
76 c do is=1,jpart
77  is=1
78  write(iprn,6667)jphi(is),(crfttdn(it,ir,is)*pi,ir=1,nangl)
79  do ir=1,nangl
80  ocrfttdn(is,ir,it) = crfttdn(it,ir,is)*pi
81  enddo
82 c enddo
83 5568 continue
84 c*****format statements*************************************************
85 c
86 6659 format(t1,'fluxes')
87 6660 format(t8,'sza',t32,f6.1,t40,'f0_top',t64,1pe12.4)
88 6661 format(t8,'fdir_btm',t26,1pe12.4,t40,'fdif_btm',t64,1pe12.4)
89 6662 format(t8,'sbar',t26,1pe12.4,t40,'f0_top',t64,1pe12.4)
90 6664 format('phi theta',7(2x,f5.1,3x)/3(9x,7(2x,f5.1,3x)/))
91 6665 format(t1,'t function'/)
92 6667 format(i3,6x,1p7e10.3/3(9x,1p7e10.3/))
93 6668 format(t1,'radiances (f0=pi)')
94 6672 format(t8,'fdif_up',t26,1pe12.4,t40,'sbar',t64,1pe12.4)
95 6674 format(t8,'acrft_fdif_dn',t26,1pe12.4,t40,'acrft_fdif_up',
96  1 t64,1pe12.4)
97 c***********************************************************************
98  return
99  end
100 c**********************************************************************
#define real
Definition: DbAlgOcean.cpp:26
#define pi
Definition: vincenty.c:23
subroutine headr(iprn)
Definition: headr.f:2
subroutine outcrftz(tmcfd, tmcfu, ocrfttup, ocrftzu, ocrfttdn, ocrftzd)
Definition: outcrftz.f:2