OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
outdtz.f
Go to the documentation of this file.
1  subroutine outdtz
2 c
3 c subroutine outdt creates output datasets for upwelling and
4 c downwelling diffused radiation leaving the top and bottom of
5 c the atmosphere
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 c***********************************************************************
12 c
13  lsza=bfr1(35)+0.001
14  do i=1,lsza,1
15  m=msza(i)
16  tma(i)=the0in(m)
17  tmb(i)=fdirc(m)
18  tmc(i)=sbarz(m)
19  tmfd(i)=fdown(m)
20  tmfu(i)=fup(m)
21  enddo
22 c
23  iprn=4
24  call headr(iprn)
25 c
26  do 5567 i=1,lsza
27  it=msza(i)
28  write(iprn,6659)
29  write(iprn,6660)tma(i),pi
30  write(iprn,6661)tmb(i),tmfd(i)
31  write(iprn,6672)tmfu(i),tmc(i)
32  write(iprn,6668)
33  write(iprn,6664)(the(ir),ir=1,nangl)
34  do is=1,jpart
35  write(iprn,6667)jphi(is),(xzeroz(it,ir,is)*pi,ir=1,nangl)
36  enddo
37  write(iprn,6665)
38  write(iprn,6664)(the(ir),ir=1,nangl)
39 c do is=1,jpart
40  is=1
41  write(iprn,6667)jphi(is),(tupz(it,ir,is)*pi,ir=1,nangl)
42 c enddo
43 5567 continue
44 c
45  iprn=3
46  call headr(iprn)
47 c
48  do 5568 i=1,lsza
49  it=msza(i)
50  write(iprn,6659)
51  write(iprn,6660)tma(i),pi
52  write(iprn,6661)tmb(i),tmfd(i)
53  write(iprn,6672)tmfu(i),tmc(i)
54  write(iprn,6668)
55  write(iprn,6664)(the(ir),ir=1,nangl)
56  do is=1,jpart
57  write(iprn,6667)jphi(is),(xzerod(it,ir,is)*pi,ir=1,nangl)
58  enddo
59  write(iprn,6665)
60  write(iprn,6664)(the(ir),ir=1,nangl)
61 c do is=1,jpart
62  is=1
63  write(iprn,6667)jphi(is),(tdwnz(it,ir,is)*pi,ir=1,nangl)
64 c enddo
65 5568 continue
66 c*****format statements*************************************************
67 c
68 6659 format(t1,'fluxes')
69 6660 format(t8,'sza',t32,f6.1,t40,'f0_top',t64,1pe12.4)
70 6661 format(t8,'fdir_btm',t26,1pe12.4,t40,'fdif_btm',t64,1pe12.4)
71 6662 format(t8,'sbar',t26,1pe12.4,t40,'f0_top',t64,1pe12.4)
72 6664 format('phi theta',7(2x,f5.1,3x)/3(9x,7(2x,f5.1,3x)/))
73 6665 format(t1,'t function'/)
74 6667 format(i3,6x,1p7e10.3/3(9x,1p7e10.3/))
75 6668 format(t1,'radiances (f0=pi)')
76 6672 format(t8,'fdif_up',t26,1pe12.4,t40,'sbar',t64,1pe12.4)
77 c***********************************************************************
78  return
79  end
80 c**********************************************************************
#define real
Definition: DbAlgOcean.cpp:26
subroutine outdtz(otupz, oxzeroz, otdwnz, oxzerod)
Definition: outdtz.f:2
#define pi
Definition: vincenty.c:23
subroutine headr(iprn)
Definition: headr.f:2