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

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

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


Revision 1.1 - (hide annotations) (download)
Wed Apr 13 18:56:24 2011 UTC (14 years, 3 months ago) by jahn
Branch: MAIN
CVS Tags: ctrb_darwin2_ckpt63l_20120405, ctrb_darwin2_ckpt62v_20110413, ctrb_darwin2_ckpt63f_20111201, ctrb_darwin2_ckpt62y_20110526, ctrb_darwin2_ckpt62x_20110513, ctrb_darwin2_ckpt62w_20110426, ctrb_darwin2_ckpt63o_20120629, ctrb_darwin2_ckpt63c_20111011, ctrb_darwin2_ckpt63i_20120124, ctrb_darwin2_ckpt63m_20120506, ctrb_darwin2_ckpt63e_20111107, ctrb_darwin2_ckpt63b_20110830, ctrb_darwin2_ckpt63j_20120217, ctrb_darwin2_ckpt63r_20120817, ctrb_darwin2_ckpt63g_20111220, ctrb_darwin2_ckpt63a_20110804, ctrb_darwin2_ckpt63h_20111230, ctrb_darwin2_ckpt63p_20120707, ctrb_darwin2_ckpt63d_20111107, ctrb_darwin2_ckpt63q_20120731, ctrb_darwin2_ckpt63_20110728, ctrb_darwin2_baseline, ctrb_darwin2_ckpt63n_20120604, ctrb_darwin2_ckpt63k_20120317, ctrb_darwin2_ckpt62z_20110622
File MIME type: text/plain
darwin2 initial checkin

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     & ,darwin_Sdom ! used in acdom calculations
53     & ,excdom ! CDOM exponent
54     #else
55     & ,acdom
56     #endif
57     COMMON/wavebands_params_i/ap_type
58     & ,pwaves
59     #ifdef DAR_CALC_ACDOM
60     & ,nl450 ! what is this? used in acdom calculations
61     #endif
62     #ifdef DAR_DIAG_ACDOM
63     & ,darwin_diag_acdom_ilam ! waveband to write to diagnostic
64     #endif
65    
66    
67     INTEGER ap_type(npmax)
68     INTEGER pwaves(tlam)
69    
70     _RL aphy_chl(npmax,tlam),aphy_chl_ps(npmax,tlam)
71     _RL alphachl_nl(npmax,tlam)
72     _RL ap(tnabp,tlam),ap_ps(tnabp,tlam),bp(tnabp,tlam)
73     _RL bbp(tnabp,tlam)
74     _RL aw(tlam),bw(tlam)
75     _RL wb_width(tlam)
76     _RL wb_totalWidth
77     #ifndef OASIM
78     _RL sf(tlam)
79     #endif
80     #ifdef DAR_CALC_ACDOM
81     _RL darwin_Sdom ! used in acdom calculations
82     _RL excdom(tlam) ! CDOM exponent
83     INTEGER nl450 ! what is this? it's the nl number for 450nm used in acdom calculations
84     #else
85     _RL acdom(tlam)
86     #endif
87     #ifdef DAR_DIAG_ACDOM
88     INTEGER darwin_diag_acdom_ilam ! waveband to write to diagnostic
89     #endif
90    
91     #ifdef DAR_RADTRANS
92     C runtime parameters:
93     C
94     C darwin_PAR_ilamLo :: starting waveband index of PAR range (default 1)
95     C darwin_PAR_ilamHi :: end waveband index of PAR range (default tlam)
96     C darwin_radmodThresh :: threshold for calling radmod (default 1E-4)
97     C darwin_Dmax :: depth at which Ed is zero (default 500 m)
98     C darwin_rmus :: inverse average cosine of downward diffuse radiation
99     C darwin_rmuu :: inverse average cosine of upward diffuse radiation
100     C darwin_bbw :: backscattering to forward scattering ratio for water
101     C darwin_bbphy :: backscattering to forward scattering ratio for Chlorophyll
102     C darwin_bbmin :: minimum backscattering coefficient (not ratio)
103     c darwin_radtrans_kmax :: deepest layer to compute irradiances in
104     c darwin_radtrans_niter :: number of iterations for iterative improvement of radmod solution
105     c darwin_part_size_P :: phosphorus content of one particle. used to compute number of particles
106     C
107     COMMON /DARWIN_RADTRANS_PARM_I/
108     & darwin_PAR_ilamLo, darwin_PAR_ilamHi
109     & ,darwin_radtrans_kmax
110     & ,darwin_radtrans_niter
111    
112     INTEGER darwin_PAR_ilamLo, darwin_PAR_ilamHi
113     INTEGER darwin_radtrans_kmax
114     INTEGER darwin_radtrans_niter
115    
116     COMMON /DARWIN_RADTRANS_PARM_R/
117     & darwin_radmodThresh, darwin_Dmax,
118     & darwin_rmus, darwin_rmuu,
119     & darwin_bbw,
120     & darwin_bbphy,
121     & darwin_bbmin,
122     & darwin_part_size_P
123    
124     _RL darwin_radmodThresh
125     _RL darwin_Dmax
126     _RL darwin_rmus, darwin_rmuu
127     _RL darwin_bbw
128     _RL darwin_bbphy(tnabp)
129     _RL darwin_bbmin
130     _RL darwin_part_size_P
131    
132     C dependent/hardcoded parameters:
133     C
134     C pid :: pi
135     C rad :: conversion factor from radians to degree, 180/pi
136     C bphy_chl :: Chl-specific scattering coefficient for phyto
137     C bbphy_chl :: Chl-specific backscattering coefficient for phyto
138     C apart :: number-specific absorption coefficient for particles
139     C bpart :: number-specific scattering coefficient for particles
140     C bbpart :: number-specific backscattering coefficient for particles
141     C apart_P :: P-specific absorption coefficient for particles
142     C bpart_P :: P-specific scattering coefficient for particles
143     C bbpart_P :: P-specific backscattering coefficient for particles
144     C
145     COMMON/DARWIN_RADTRANS_R/
146     & pid,rad !radias and pi - use these rather than darwin versions for simplicity.
147     & ,bphy_chl !scat coef for phyto
148     & ,bbphy_chl !backscat coef for phyto
149     & ,apart, bpart, bbpart
150     & ,apart_P, bpart_P, bbpart_P
151    
152     c not sure if some of these are necessary
153     c SOME OF THESE parameter names are the same as WAVEBANDS, but have an added k dimension....
154     c the params aw, bw are only temporary in wavebands_1d .:. CHANGE THEM in WAVEBANDS_1D to something else
155     c this list mostly from light.F
156     c _RL rod(tlam),ros(tlam) !surface direct and diffuse reflectance !not here
157     _RL pid,rad !radias and pi - use these rather than darwin versions for simplicity.
158     _RL bphy_chl(npmax,tlam) !scat coef for phyto
159     _RL bbphy_chl(npmax,tlam) !backscat coef for phyto
160     _RL apart(tlam)
161     _RL bpart(tlam)
162     _RL bbpart(tlam)
163     _RL apart_P(tlam)
164     _RL bpart_P(tlam)
165     _RL bbpart_P(tlam)
166     #endif /* DAR_RADTRANS */
167    

  ViewVC Help
Powered by ViewVC 1.1.22