OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
outactfz.f
Go to the documentation of this file.
1  subroutine outactfz
2 c
3 c subroutine outactfz outputs the actinic flux at all the levels
4 c of the atmosphere
5 c***********************************************************************
6 c.....include the common blocks
7  implicit real*8 (a-h,o-z)
8  include 'common_all.cmn'
9  real*8 tma(25),tmb(25),tmc(25),tmfd(25),tmfu(25),tmf1(25,1000),
10  1 tmf2(1000)
11 c***********************************************************************
12 c
13  write(*,*)'welcome to outactfz'
14  write(*,*)'bfr1(35)',bfr1(35)
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)/pi
20  tmc(i)=sbarz(m)
21  tmfd(i)=fdown(m)/pi
22  tmfu(i)=fup(m)/pi
23  do j=1,nolyrp
24  tmf1(i,j)=acfg1(m,j)
25  tmf2(j)=acfg2(j)
26  enddo
27  enddo
28 c
29  ff0=1
30  write(30,502)wvlth*1.0e+4
31  write(30,503)ff0
32  write(30,504)(tma(i),i=1,lsza)
33  write(30,506)(tmb(i),i=1,lsza)
34  write(30,508)(tmfd(i),i=1,lsza)
35  write(30,510)(tmc(i),i=1,lsza)
36  write(30,511)
37  do k=1,nolyrp
38  write(30,512)k,ht(k),pl(k),taupl(k),tmf2(k),(tmf1(i,k),i=1,lsza)
39  enddo
40 c
41 502 format('wavelength(um)',t20,1pe11.3)
42 503 format('solar flux(top)',t20,1pe11.3)
43 504 format('sza',t22,25(f4.1,7x))
44 506 format('f(dir)',t20,1p25e11.3)
45 508 format('f(diff)',t20,1p25e11.3)
46 510 format('sbar',t20,1p25e11.3)
47 511 format(t1,'lvl',t7,'height',t18,'pressure',t29,
48  1 'tot. opt.',t40,'act_flx',t51,'act_flx'/
49  2 t1,'no.',t8,'(km)',t19,'(atm.)',t29,'thickness',
50  3 t40,'(ground=1)',t51,'(r=0)')
51 512 format(i3,1x,1p29e11.3)
52  return
53  end
54 c************************************************************************
subroutine outactfz(tmf1, tmf2)
Definition: outactfz.f:2
#define real
Definition: DbAlgOcean.cpp:26
#define pi
Definition: vincenty.c:23