/[MITgcm]/MITgcm_contrib/darwin2/pkg/darwin/WAVEBANDS_PARAMS.h
ViewVC logotype

Contents of /MITgcm_contrib/darwin2/pkg/darwin/WAVEBANDS_PARAMS.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Apr 16 20:21:57 2013 UTC (12 years, 3 months ago) by jahn
Branch: MAIN
CVS Tags: ctrb_darwin2_ckpt64k_20130723, ctrb_darwin2_ckpt65w_20160512, ctrb_darwin2_ckpt65j_20150225, ctrb_darwin2_ckpt66g_20170424, ctrb_darwin2_ckpt64h_20130528, ctrb_darwin2_ckpt66k_20171025, ctrb_darwin2_ckpt66n_20180118, ctrb_darwin2_ckpt65v_20160409, ctrb_darwin2_ckpt65s_20160114, ctrb_darwin2_ckpt65_20140718, ctrb_darwin2_ckpt64m_20130820, ctrb_darwin2_ckpt66d_20170214, ctrb_darwin2_ckpt64r_20131210, ctrb_darwin2_ckpt65m_20150615, ctrb_darwin2_ckpt65q_20151118, ctrb_darwin2_ckpt65o_20150914, ctrb_darwin2_ckpt65p_20151023, ctrb_darwin2_ckpt64n_20130826, ctrb_darwin2_ckpt65e_20140929, ctrb_darwin2_ckpt64o_20131024, ctrb_darwin2_ckpt64v_20140411, ctrb_darwin2_ckpt64z_20140711, ctrb_darwin2_ckpt65l_20150504, ctrb_darwin2_ckpt65z_20160929, ctrb_darwin2_ckpt65n_20150729, ctrb_darwin2_ckpt64y_20140622, ctrb_darwin2_ckpt65d_20140915, ctrb_darwin2_ckpt64t_20140202, ctrb_darwin2_ckpt66h_20170602, ctrb_darwin2_ckpt64i_20130622, ctrb_darwin2_ckpt64s_20140105, ctrb_darwin2_ckpt64x_20140524, ctrb_darwin2_ckpt65x_20160612, ctrb_darwin2_ckpt66f_20170407, ctrb_darwin2_ckpt65g_20141120, ctrb_darwin2_ckpt65k_20150402, ctrb_darwin2_ckpt64w_20140502, ctrb_darwin2_ckpt66a_20161020, ctrb_darwin2_ckpt64g_20130503, ctrb_darwin2_ckpt64l_20130806, ctrb_darwin2_ckpt65f_20141014, ctrb_darwin2_ckpt66b_20161219, ctrb_darwin2_ckpt64u_20140308, ctrb_darwin2_ckpt64j_20130704, ctrb_darwin2_ckpt65i_20150123, ctrb_darwin2_ckpt66j_20170815, ctrb_darwin2_ckpt65y_20160801, ctrb_darwin2_ckpt66c_20170121, ctrb_darwin2_ckpt65a_20140728, ctrb_darwin2_ckpt65b_20140812, ctrb_darwin2_ckpt65t_20160221, ctrb_darwin2_ckpt64p_20131118, ctrb_darwin2_ckpt66o_20180209, ctrb_darwin2_ckpt66e_20170314, ctrb_darwin2_ckpt64q_20131118, ctrb_darwin2_ckpt64p_20131024, ctrb_darwin2_ckpt65u_20160315, ctrb_darwin2_ckpt65r_20151221, ctrb_darwin2_ckpt66i_20170718, ctrb_darwin2_ckpt65c_20140830, ctrb_darwin2_ckpt66l_20171025, ctrb_darwin2_ckpt65h_20141217, ctrb_darwin2_ckpt66m_20171213, HEAD
Changes since 1.2: +7 -3 lines
File MIME type: text/plain
make reference waveband for aCDOM a runtime parameter

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 & ,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 & ,excdom ! CDOM exponent
56 #else
57 & ,acdom
58 #endif
59 COMMON/wavebands_params_i/ap_type
60 & ,pwaves
61 #ifdef DAR_CALC_ACDOM
62 & ,nlaCDOM ! waveband index where aCDOM is given
63 #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 _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 _RL excdom(tlam) ! CDOM exponent
87 INTEGER nlaCDOM ! nl number where aCDOM is given used in acdom calculations
88 #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 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 c darwin_part_size_P :: phosphorus content of one particle. used to compute number of particles
115 C
116
117 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

  ViewVC Help
Powered by ViewVC 1.1.22