OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
outcrftz.f
Go to the documentation of this file.
1  subroutine outcrftz
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 'common_all.cmn'
10  real*8 tma(25),tmb(25),tmc(25),tmfd(25),tmfu(25)
11  real*8 tmcfd(25),tmcfu(25)
12 c***********************************************************************
13 c
14  lsza=bfr1(35)+0.001
15  do i=1,lsza,1
16  m=msza(i)
17  tma(i)=the0in(m)
18  tmb(i)=fdirc(m)
19  tmc(i)=sbarz(m)
20  tmfd(i)=fdown(m)
21  tmfu(i)=fup(m)
22  tmcfd(i)=cfdown(m)
23  tmcfu(i)=cfup(m)
24  enddo
25 c
26  iprn=14
27  call headr(iprn)
28 c
29  do 5567 i=1,lsza
30  it=msza(i)
31  write(iprn,6659)
32  write(iprn,6660)tma(i),pi
33  write(iprn,6661)tmb(i),tmfd(i)
34  write(iprn,6672)tmfu(i),tmc(i)
35  write(iprn,6674)tmcfd(i),tmcfu(i)
36  write(iprn,6668)
37  write(iprn,6664)(the(ir),ir=1,nangl)
38  do is=1,jpart
39  write(iprn,6667)jphi(is),(crftzu(it,ir,is)*pi,ir=1,nangl)
40  enddo
41  write(iprn,6665)
42  write(iprn,6664)(the(ir),ir=1,nangl)
43 c do is=1,jpart
44  is=1
45  write(iprn,6667)jphi(is),(crfttup(it,ir,is)*pi,ir=1,nangl)
46 c enddo
47 5567 continue
48 c
49  iprn=13
50  call headr(iprn)
51 c
52  do 5568 i=1,lsza
53  it=msza(i)
54  write(iprn,6659)
55  write(iprn,6660)tma(i),pi
56  write(iprn,6661)tmb(i),tmfd(i)
57  write(iprn,6672)tmfu(i),tmc(i)
58  write(iprn,6674)tmcfd(i),tmcfu(i)
59  write(iprn,6668)
60  write(iprn,6664)(the(ir),ir=1,nangl)
61  do is=1,jpart
62  write(iprn,6667)jphi(is),(crftzd(it,ir,is)*pi,ir=1,nangl)
63  enddo
64  write(iprn,6665)
65  write(iprn,6664)(the(ir),ir=1,nangl)
66 c do is=1,jpart
67  is=1
68  write(iprn,6667)jphi(is),(crfttdn(it,ir,is)*pi,ir=1,nangl)
69 c enddo
70 5568 continue
71 c*****format statements*************************************************
72 c
73 6659 format(t1,'fluxes')
74 6660 format(t8,'sza',t32,f6.1,t40,'f0_top',t64,1pe12.4)
75 6661 format(t8,'fdir_btm',t26,1pe12.4,t40,'fdif_btm',t64,1pe12.4)
76 6662 format(t8,'sbar',t26,1pe12.4,t40,'f0_top',t64,1pe12.4)
77 6664 format('phi theta',7(2x,f5.1,3x)/3(9x,7(2x,f5.1,3x)/))
78 6665 format(t1,'t function'/)
79 6667 format(i3,6x,1p7e10.3/3(9x,1p7e10.3/))
80 6668 format(t1,'radiances (f0=pi)')
81 6672 format(t8,'fdif_up',t26,1pe12.4,t40,'sbar',t64,1pe12.4)
82 6674 format(t8,'acrft_fdif_dn',t26,1pe12.4,t40,'acrft_fdif_up',
83  1 t64,1pe12.4)
84 c***********************************************************************
85  return
86  end
87 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