1 |
jahn |
1.1 |
c ANNA WAVEBANDS_PARAMS.h define key paramters for wavebands |
2 |
|
|
c ANNA WAVEBANDS_PARAMS.h set number of wavebands, number of absorption 'types' here |
3 |
|
|
c |
4 |
|
|
c description: Key parameters for wavebands |
5 |
|
|
c Anna Hickman Spring/Summer 2008 |
6 |
|
|
c |
7 |
|
|
c Set parameters: |
8 |
|
|
c tlam = number of wavebands |
9 |
|
|
c must match number of wavebands in input datafiles |
10 |
|
|
c must be the same for all data types (water, phyto, CDOM, surface spectra) |
11 |
|
|
C (set in SPECTRAL_SIZE.h) |
12 |
|
|
c tnabp = number of types of absorption spectra for phyto |
13 |
|
|
c must match number of types in input data file for phyto absorption spectra |
14 |
|
|
|
15 |
|
|
INTEGER tnabp |
16 |
|
|
PARAMETER (tnabp=4) |
17 |
|
|
|
18 |
|
|
c Input and assigned data: |
19 |
|
|
c pwaves = actual values of wavebands (nm) |
20 |
|
|
c aw = absoprtion spectra for water (m-1) |
21 |
|
|
c bw = backscatter spectra for water (currently zero) |
22 |
|
|
c ap = absorptnion spectra for phyto types (m2 (mgchla)-1) |
23 |
|
|
c total absorption is used in light attenuation |
24 |
|
|
c ap_ps = as above but absorption of photosynthetic (PS) pigments only (m2 (mgchla)-1) |
25 |
|
|
c absorption by psc only is used in growth |
26 |
|
|
c bp = backscatter spectra for phytoplankton types (currently zero) |
27 |
|
|
c sf = PAR-normalised surface light spectrum |
28 |
|
|
c intenities per nm and sum = 1 (uE m-2 s-1 (nm)-1) |
29 |
|
|
c wb_width = width of wavebands (nm) |
30 |
|
|
c acdom = absorption spectra for cdom (assumed constant) (m-1) |
31 |
|
|
c ap_type = absorption 'type' of phytoplankton assigned in darwin_generate_phyto.F |
32 |
|
|
c aphy_chl = absorption spectra assigned base on 'type' for each phtyo (chl normalised) |
33 |
|
|
c aphy_chl_ps = as above but absorption spectra given is that by photosynthetic (PS) pigs only |
34 |
|
|
c aphy_chl and aphy_chl_psc assigned in wavebands_init_vari.F |
35 |
|
|
c alphachl_nl = slope of PI curve calulated in darwin_init_vari.F |
36 |
|
|
c one value for each wavelength (same units as non-wavebands alphachl) |
37 |
|
|
c darwin_diag_acdom_ilam :: waveband to write to diagnostics |
38 |
|
|
c |
39 |
|
|
c n.b. some info about input data is in the headers inside the input files. |
40 |
|
|
c n.b. final column in input fles reserved for backscatter coeffs. Currently 0. |
41 |
|
|
c n.b. local PARwl and PARwupl are assigned in darwin_forcing.F and darwin_plankton.F |
42 |
|
|
|
43 |
|
|
COMMON/wavebands_params/aphy_chl |
44 |
|
|
& ,aphy_chl_ps |
45 |
|
|
& ,alphachl_nl |
46 |
|
|
& ,aw,bw,ap,bp,ap_ps,bbp |
47 |
|
|
& ,wb_width,wb_totalWidth |
48 |
|
|
#ifndef OASIM |
49 |
|
|
& ,sf |
50 |
|
|
#endif |
51 |
|
|
#ifdef DAR_CALC_ACDOM |
52 |
jahn |
1.3 |
& ,darwin_Sdom ! slope parameter for aCDOM wavelength dependence |
53 |
|
|
& ,darwin_lambda_aCDOM ! wavelength where aCDOM is given |
54 |
|
|
& ,darwin_aCDOM_fac ! ratio of aCDOM to (aphy+aw) at darwin_lambda_aCDOM |
55 |
jahn |
1.1 |
& ,excdom ! CDOM exponent |
56 |
|
|
#else |
57 |
|
|
& ,acdom |
58 |
|
|
#endif |
59 |
|
|
COMMON/wavebands_params_i/ap_type |
60 |
|
|
& ,pwaves |
61 |
|
|
#ifdef DAR_CALC_ACDOM |
62 |
jahn |
1.3 |
& ,nlaCDOM ! waveband index where aCDOM is given |
63 |
jahn |
1.1 |
#endif |
64 |
|
|
#ifdef DAR_DIAG_ACDOM |
65 |
|
|
& ,darwin_diag_acdom_ilam ! waveband to write to diagnostic |
66 |
|
|
#endif |
67 |
|
|
|
68 |
|
|
|
69 |
|
|
INTEGER ap_type(npmax) |
70 |
|
|
INTEGER pwaves(tlam) |
71 |
|
|
|
72 |
|
|
_RL aphy_chl(npmax,tlam),aphy_chl_ps(npmax,tlam) |
73 |
|
|
_RL alphachl_nl(npmax,tlam) |
74 |
|
|
_RL ap(tnabp,tlam),ap_ps(tnabp,tlam),bp(tnabp,tlam) |
75 |
|
|
_RL bbp(tnabp,tlam) |
76 |
|
|
_RL aw(tlam),bw(tlam) |
77 |
|
|
_RL wb_width(tlam) |
78 |
|
|
_RL wb_totalWidth |
79 |
|
|
#ifndef OASIM |
80 |
|
|
_RL sf(tlam) |
81 |
|
|
#endif |
82 |
|
|
#ifdef DAR_CALC_ACDOM |
83 |
|
|
_RL darwin_Sdom ! used in acdom calculations |
84 |
jahn |
1.3 |
_RL darwin_lambda_aCDOM ! wavelength where aCDOM is given |
85 |
|
|
_RL darwin_aCDOM_fac ! ratio of aCDOM to (aphy+aw) at darwin_lambda_aCDOM |
86 |
jahn |
1.1 |
_RL excdom(tlam) ! CDOM exponent |
87 |
jahn |
1.3 |
INTEGER nlaCDOM ! nl number where aCDOM is given used in acdom calculations |
88 |
jahn |
1.1 |
#else |
89 |
|
|
_RL acdom(tlam) |
90 |
|
|
#endif |
91 |
|
|
#ifdef DAR_DIAG_ACDOM |
92 |
|
|
INTEGER darwin_diag_acdom_ilam ! waveband to write to diagnostic |
93 |
|
|
#endif |
94 |
|
|
|
95 |
|
|
#ifdef DAR_RADTRANS |
96 |
|
|
C runtime parameters: |
97 |
|
|
C |
98 |
|
|
C darwin_PAR_ilamLo :: starting waveband index of PAR range (default 1) |
99 |
|
|
C darwin_PAR_ilamHi :: end waveband index of PAR range (default tlam) |
100 |
|
|
C darwin_radmodThresh :: threshold for calling radmod (default 1E-4) |
101 |
|
|
C darwin_Dmax :: depth at which Ed is zero (default 500 m) |
102 |
|
|
C darwin_rmus :: inverse average cosine of downward diffuse radiation |
103 |
|
|
C darwin_rmuu :: inverse average cosine of upward diffuse radiation |
104 |
|
|
C darwin_bbw :: backscattering to forward scattering ratio for water |
105 |
|
|
C darwin_bbphy :: backscattering to forward scattering ratio for Chlorophyll |
106 |
|
|
C darwin_bbmin :: minimum backscattering coefficient (not ratio) |
107 |
|
|
c darwin_radtrans_kmax :: deepest layer to compute irradiances in |
108 |
jahn |
1.2 |
c (is considered infinitely deep for boundary condition) |
109 |
|
|
c darwin_radtrans_niter :: how to solve 3-stream equations: |
110 |
|
|
c -2 means use direct solver (default) |
111 |
|
|
c -1 means use approximate non-iterative solver |
112 |
|
|
c (either a la Aas #ifdef DAR_RADTRANS_DECREASING, or a la W.Gregg) |
113 |
|
|
c >= 0 is number of iterations for iterative improvement of radmod solution |
114 |
jahn |
1.1 |
c darwin_part_size_P :: phosphorus content of one particle. used to compute number of particles |
115 |
|
|
C |
116 |
jahn |
1.2 |
|
117 |
jahn |
1.1 |
COMMON /DARWIN_RADTRANS_PARM_I/ |
118 |
|
|
& darwin_PAR_ilamLo, darwin_PAR_ilamHi |
119 |
|
|
& ,darwin_radtrans_kmax |
120 |
|
|
& ,darwin_radtrans_niter |
121 |
|
|
|
122 |
|
|
INTEGER darwin_PAR_ilamLo, darwin_PAR_ilamHi |
123 |
|
|
INTEGER darwin_radtrans_kmax |
124 |
|
|
INTEGER darwin_radtrans_niter |
125 |
|
|
|
126 |
|
|
COMMON /DARWIN_RADTRANS_PARM_R/ |
127 |
|
|
& darwin_radmodThresh, darwin_Dmax, |
128 |
|
|
& darwin_rmus, darwin_rmuu, |
129 |
|
|
& darwin_bbw, |
130 |
|
|
& darwin_bbphy, |
131 |
|
|
& darwin_bbmin, |
132 |
|
|
& darwin_part_size_P |
133 |
|
|
|
134 |
|
|
_RL darwin_radmodThresh |
135 |
|
|
_RL darwin_Dmax |
136 |
|
|
_RL darwin_rmus, darwin_rmuu |
137 |
|
|
_RL darwin_bbw |
138 |
|
|
_RL darwin_bbphy(tnabp) |
139 |
|
|
_RL darwin_bbmin |
140 |
|
|
_RL darwin_part_size_P |
141 |
|
|
|
142 |
|
|
C dependent/hardcoded parameters: |
143 |
|
|
C |
144 |
|
|
C pid :: pi |
145 |
|
|
C rad :: conversion factor from radians to degree, 180/pi |
146 |
|
|
C bphy_chl :: Chl-specific scattering coefficient for phyto |
147 |
|
|
C bbphy_chl :: Chl-specific backscattering coefficient for phyto |
148 |
|
|
C apart :: number-specific absorption coefficient for particles |
149 |
|
|
C bpart :: number-specific scattering coefficient for particles |
150 |
|
|
C bbpart :: number-specific backscattering coefficient for particles |
151 |
|
|
C apart_P :: P-specific absorption coefficient for particles |
152 |
|
|
C bpart_P :: P-specific scattering coefficient for particles |
153 |
|
|
C bbpart_P :: P-specific backscattering coefficient for particles |
154 |
|
|
C |
155 |
|
|
COMMON/DARWIN_RADTRANS_R/ |
156 |
|
|
& pid,rad !radias and pi - use these rather than darwin versions for simplicity. |
157 |
|
|
& ,bphy_chl !scat coef for phyto |
158 |
|
|
& ,bbphy_chl !backscat coef for phyto |
159 |
|
|
& ,apart, bpart, bbpart |
160 |
|
|
& ,apart_P, bpart_P, bbpart_P |
161 |
|
|
|
162 |
|
|
c not sure if some of these are necessary |
163 |
|
|
c SOME OF THESE parameter names are the same as WAVEBANDS, but have an added k dimension.... |
164 |
|
|
c the params aw, bw are only temporary in wavebands_1d .:. CHANGE THEM in WAVEBANDS_1D to something else |
165 |
|
|
c this list mostly from light.F |
166 |
|
|
c _RL rod(tlam),ros(tlam) !surface direct and diffuse reflectance !not here |
167 |
|
|
_RL pid,rad !radias and pi - use these rather than darwin versions for simplicity. |
168 |
|
|
_RL bphy_chl(npmax,tlam) !scat coef for phyto |
169 |
|
|
_RL bbphy_chl(npmax,tlam) !backscat coef for phyto |
170 |
|
|
_RL apart(tlam) |
171 |
|
|
_RL bpart(tlam) |
172 |
|
|
_RL bbpart(tlam) |
173 |
|
|
_RL apart_P(tlam) |
174 |
|
|
_RL bpart_P(tlam) |
175 |
|
|
_RL bbpart_P(tlam) |
176 |
|
|
#endif /* DAR_RADTRANS */ |
177 |
|
|
|