OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
outdt_trans.f
Go to the documentation of this file.
1  subroutine outdt_trans
2 
3 c***********************************************************************
4 c subroutine outdt_trans creates output datasets for upwelling
5 c diffused radiation leaving the top of the atmosphere and
6 c just above the flat ocean surface
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 tmg(25),tmh(25),tmp(25),tmq(25),tmpp(25),tmqq(25)
13  real*8 tmrr(25),tmss(25),transm(25)
14 c***********************************************************************
15 c
16  lsza=bfr1(35)+0.001
17  do i=1,lsza,1
18  m=msza(i)
19  tma(i)=the0in(m)
20  tmb(i)=fdirc(m)
21  tmc(i)=sbarz(m)
22  tmfd(i)=fdown(m)
23  tmfu(i)=fup(m)
24  tms(i)=oalb(m)
25  tmg(i)=albtdr(m)*pi
26  tmh(i)=albtdf(m)*pi
27  tmp(i)=albtrf(m)*pi
28  tmq(i)=albwl(m)*pi
29  tmpp(i)=tmq(i)/(tmb(i)+tmfd(i))
30  tmqq(i)=tms(i)-tmpp(i)
31  tmrr(i)=albrdr(m)
32  tmss(i)=albrdf(m)
33  enddo
34 c
35  iprn=4
36  call headr(iprn)
37 c
38  write(iprn,6659)
39  do 5567 i=1,lsza
40  it=msza(i)
41  write(iprn,6660)tma(i),pi
42  write(iprn,6661)tmb(i),tmfd(i)
43  if(iref.eq.1 .or. iref.eq.2)then
44  write(iprn,6662)tmfu(i),tms(i)
45  write(iprn,7663)tmg(i),tmh(i)
46  write(iprn,7664)tmp(i),tmq(i)
47  write(iprn,7665)tmpp(i),tmqq(i)
48  write(iprn,7666)tmrr(i),tmss(i)
49  endif
50  write(iprn,6668)
51  write(iprn,6664)(the(ir),ir=1,nangl)
52  do is=1,jpart
53  write(iprn,6667)jphi(is),(xzeroz(it,ir,is)*pi,ir=1,nangl)
54  enddo
55 5567 continue
56 c
57 c
58  write(iprn,6659)
59  do 5568 i=1,1
60  it=msza(i)
61  do k=1,nangl
62  transm(k)=xzero_up(it,k,1)/xzero_btm(it,k,1)
63  enddo
64  write(iprn,6668)
65  write(iprn,6664)(the(ir),ir=1,nangl)
66  write(iprn,6667)jphi(1),(transm(ir),ir=1,nangl)
67 c
68 
69 5568 continue
70 c*****format statements*************************************************
71 c
72 6659 format(t1,'diffuse tranmittance')
73 6660 format(t8,'sza',t32,f6.1,t40,'f0_top',t64,1pe12.4)
74 6661 format(t8,'fdir_btm',t26,1pe12.4,t40,'fdif_btm',t64,1pe12.4)
75 6662 format(t8,'fdif_up',t26,1pe12.4,t40,'hem. ref(ocean)',t64,1pe12.4)
76 6664 format('phi theta',7(2x,f5.1,3x)/3(9x,7(2x,f5.1,3x)/))
77 6665 format(t8,'fdif_up',t26,1pe12.4,t40,'hem. ref(surf)',t64,1pe12.4)
78 6667 format(i3,6x,1p7e10.3/3(9x,1p7e10.3/))
79 6668 format(t1,'radiances (f0=pi)')
80 6672 format(t8,'fdif_up',t26,1pe12.4,t40,'sbar',t64,1pe12.4)
81 7663 format(t8,'ftw_dir(ocn)',t26,1pe12.4,
82  1 t40,'ftw_difdn(ocn)',t64,1pe12.4)
83 7664 format(t8,'ftw_difup(blow_ocn)',t27,1pe11.4,
84  1 t40,'ftw_difup(above_ocn)',t64,1pe12.4)
85 7665 format(t8,'hem_ref(ocn_trans)',t26,1pe12.4,
86  1 t40,'hem_ref(ocn_refl)',t64,1pe12.4)
87 7666 format(t8,'hem_ref(ocn_dirrfl)',t27,1pe11.4,
88  1 t40,'hem_ref(ocn_difrfl)',t64,1pe12.4)
89 c***********************************************************************
90  return
91  end
92 c************************************************************************
#define real
Definition: DbAlgOcean.cpp:26
#define pi
Definition: vincenty.c:23
subroutine headr(iprn)
Definition: headr.f:2
subroutine outdt_trans(transm, oxzeroz)
Definition: outdt_trans.f:2