Configuration
RE-Emission relies on a number of external configuration text files located in reemission/config
and reemission/parameters
.
These configuration files allow modification of the package’s parameters and options, such as types of emission models (when alternative mdels are available), model parameters such as e.g. emission coefficients, nitrogen and phosphorus exports from land, emission coefficients of different land cover types, etc.
The configuration files are provided in three different formats: ini
, yaml
and toml
depending on the usage of the configuration file.
Note
We are working on adding a functionality that will allow the user to modify configuration files programmatically. For now, in order to modify the config file, the users need to find the file in the installation directory and modify it manually using a text editor.
Configuration files uses
Application-wide configuration in
app_config.yaml
.Emission modelling configurations in
config.ini
.Output and Reporting configurations in
inputs.yaml
,outputs.yaml
,parameters.yaml
andinternal_vars.yaml
.Pre-impoundment emissions and landscape Nitrogen and Phosphorus exports in various
.yaml
files inreemission/parameters
.Phosphorus removal efficiencies of different wastewater treatment technologies in
phosphorus_loads.yaml
.Visualisation and integration with GeoCARET in
geocaret.toml
andvisualisation.toml
.
Listings
1. Application-wide configuration
Application-wide configuration is used set the parameters of the logger, the \(\LaTeX\) compiler, and the locations of files used in the demo.
1---
2logging:
3 level: DEBUG
4 log_dir: '../../tmp/reemission'
5 log_filename: reemission.log
6 mode: w # w for writing and a for append
7latex:
8 compiler: pdflatex # pdflatex, latexmk, default
9 clean_tex: True
10 compilations: 2
11demo_data:
12 dam_db:
13 url: ""
14 folder: "../../examples/demo/dams_shape"
15 file: "demo_dams.shp"
16 delineations:
17 url: ""
18 folder: "../../examples/demo/delinations"
19 file: ""
20...
2. Emission modelling parameters
This configuration .ini
file is used to set the values of the emission model parametsr for the [CARBON_DIOXIDE]
, [METHANE]
and [NITROUS OXIDE]
emissions. The [CALCULATIONS]
section sets different simulation/calculation options.
1[CARBON_DIOXIDE]
2# Parameters reated to CO2 emissions
3k1_diff = 1.860
4k2_diff = -0.330
5k3_diff = 0.0332
6k4_diff = 0.0799
7k5_diff = 0.0155
8k6_diff = 0.2263
9k7_diff = -0.32996
10# Atomic masses for conversion (g/mol)
11weight_C = 12
12weight_CO2 = 44
13# Conversion from g~CO2-C~m-2~d-1 to g~CO2e~m-2~yr-1
14
15# Based on stoichiometric relationship CO2/C = 44/12 and GWP100 of 1.0
16conv_coeff = 3.667
17# Global Warming Potential of CO2 over 100 years
18co2_gwp100 = 1.0
19# Global Warming Potential of CO2 over 20 years
20co2_gwp20 = 1.0
21
22[METHANE]
23# Parameters reated to CH4 emissions
24# CH4 diffusion
25k1_diff = 0.8032
26k2_diff = -0.01419
27k3_diff = 0.4594
28k4_diff = 0.04819
29# CH4 ebullition / bubbling emissions
30k1_ebull = -1.3104
31k2_ebull = 0.8515
32k3_ebull = 0.05198
33# CH4 degassing
34k1_degas = -6.9106
35k2_degas = 0.6017
36k3_degas = 2.9499679
37k4_degas = -0.014187
38# Conversion from mg CH4~m-2~d-1 to g~CO2e~m-2~yr-1
39# Atomic masses for conversion (g/mol)
40weight_C = 12
41weight_CO2 = 44
42weight_CH4 = 16
43# Based on stoichiometry between CH4-C and CO2e of 16/12 and GWP100 of 34
44conv_coeff = 16.55
45# Global Warming Potential of CH4 (28–36) over 100 years
46ch4_gwp100 = 34.0
47# Global Warming Potential of CH4 over 20 years
48ch4_gwp20 = 86.0
49
50[NITROUS_OXIDE]
51# Parameters reated to N2O emissions
52# Conversion from µg N2O-N m-2 day-1 to g~CO2e~m-2~yr-1
53# Based on stoichiometry between N2O-N and CO2e of 44/28 and GWP100 of 298
54conv_coeff = 0.170924
55# Global Warming Potential of N2O (265–298) over 100 years
56nitrous_gwp100 = 298.0
57# Global Warming Potential of N2O over 20 years
58nitrous_gwp20 = 500.0
59# Atomic masses (molar weights) (g/mol)
60weight_O = 16
61weight_P = 30.97
62weight_N = 14.0
63
64[CALCULATIONS]
65# Permissible rel. error in catchment area fractions
66eps_catchment_area_fractions = 0.01
67# Permissible rel. error in reservoir area fractions.
68eps_reservoir_area_fractions = 0.01
69# Calculation of P retention coefficient in reservoirs
70# Available methods: 'empirical' & 'larsen'
71ret_coeff_method = empirical
72# Calculation of annual total phosphorus loading to reservoirs
73# Available methods: 'g-res' % 'mcdowell'
74p_export_cal = g-res
75# Available models: model_1 and model_2
76nitrous_oxide_model = model_1
77# Use reduced ns_catchment, i.e. catchment - reservoir for P exports
78use_ns_catchment = true
3. Output and Reporting configuration
These configuration files set the presentation options for model inputs, outputs, parameters and intermediate variables. These settings are used in the Presenter class during creation of calculation outputs files - see Reporting of Outputs for examples.
Information for each variable follows a similar structure, see example of the output variable co2_diffusion
representing calculated \(CO_2\) emission via diffusion. :
# CO2 emission through diffusion
co2_diffusion:
include: True
name: "CO2 diffusion flux"
gas_name: "CO2"
name_latex: "CO$_2$ diffusion flux"
unit: "gCO2eq m-2 yr-1"
unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
long_description: "Total CO2 emissions from a reservoir integrated over lifetime"
hint: ""
include
: (boolean): If the variable is to be included in the output files for reporting.name
: (string): Name of the variablegas_name
: Name of the gas which the (output) variable belongs to.name_latex
: (string): Name of the variable in \(\LaTeX\) format.unit
: (string): Unit in text format.unit_latex
: (string): Unit in \(\LaTeX\) format.long_description
: (string): Description of the variable.hint
: (string): Additional information about the variable.
Not all categories of variables contain the same information, e.g. inputs do not have names in \(\LaTeX\) format but the differences are small.
1---
2# Inputs to save for reporting of results
3coordinates:
4 include: True
5 name: "Reservoir coordinates (lat/lon)"
6 long_description: ""
7 unit: "deg"
8 unit_latex: "$^o$"
9id:
10 include: True
11 name: "Reservoir ID"
12 long_description: ""
13 unit: ""
14 unit_latex: ""
15type:
16 include: True
17 name: "Reservoir type"
18 long_description: ""
19 unit: ""
20 unit_latex: ""
21monthly_temps:
22 include: True
23 name: "Monthly Temperatures"
24 long_description: ""
25 unit: "deg C"
26 unit_latex: "$^o$C"
27biogenic_factors:
28 include: True
29 name: "Biogenic factors"
30 long_description: "Biome, Climate, Soil Type, Treatment Factor, Landuse Intensity"
31 unit: ""
32 unit_latex: ""
33year_profile:
34 include: True
35 name: "Year vector for emission profiles"
36 long_description: "List of years for which emission profiles are calculated"
37 unit: "yr"
38 unit_latex: "yr"
39gasses:
40 include: True
41 name: "Calculated gas emissions"
42 long_description: "List of gasses included in GHG emission calculations"
43 unit: "-"
44 unit_latex: "-"
45catchment_inputs:
46 include: True
47 name: "Inputs for catchment-level process calculations"
48 long_description: ""
49 var_dict:
50 runoff:
51 name: "Annual runoff"
52 unit: "mm/year"
53 unit_latex: "mm/year"
54 area:
55 name: "Catchment area"
56 unit: "km2"
57 unit_latex: "km$^2$"
58 riv_length:
59 name: "Length of inundated river"
60 unit: "km"
61 unit_latex: "km"
62 population:
63 name: "Population"
64 unit: "capita"
65 unit_latex: "capita"
66 area_fractions:
67 name: "Area fractions"
68 unit: "-"
69 unit_latex: "-"
70 slope:
71 name: "Mean catchment slope"
72 unit: "%"
73 unit_latex: "\\%"
74 precip:
75 name: "Mean annual precipitation"
76 unit: "mm/year"
77 unit_latex: "mm/year"
78 etransp:
79 name: "Mean annual evapotranspiration"
80 unit: "mm/year"
81 unit_latex: "mm/year"
82 soil_wetness:
83 name: "Soil wetness"
84 unit: "mm over profile"
85 unit_latex: "mm over profile"
86 mean_olsen:
87 name: "Soil Olsen P content"
88 unit: "kgP/ha"
89 unit_latex: "kgP ha$^{-1}$"
90reservoir_inputs:
91 include: True
92 name: "Inputs for reservoir-level process calculations"
93 long_description: ""
94 var_dict:
95 volume:
96 name: "Reservoir volume"
97 unit: "m3"
98 unit_latex: "m$^3$"
99 area:
100 name: "Reservoir area"
101 unit: "km2"
102 unit_latex: "km$^2$"
103 max_depth:
104 name: "Maximum reservoir depth"
105 unit: "m"
106 unit_latex: "m"
107 mean_depth:
108 name: "Mean reservoir depth"
109 unit: "m"
110 unit_latex: "m"
111 area_fractions:
112 name: "Inundated area fractions"
113 unit: "-"
114 unit_latex: "-"
115 soil_carbon:
116 name: "Soil carbon in inundated area"
117 unit: "kgC/m2"
118 unit_latex: "kgC m$^{-2}$"
119 mean_radiance:
120 name: "Mean monthly horizontal radiance"
121 unit: "kWh/m2/d"
122 unit_latex: "kWh m$^{-2}$ d$^{-1}$"
123 mean_radiance_may_sept:
124 name: "Mean monthly horizontal radiance: May - Sept"
125 unit: "kWh/m2/d"
126 unit_latex: "kWh m$^{-2}$ d$^{-1}$"
127 mean_radiance_nov_mar:
128 name: "Mean monthly horizontal radiance: Nov - Mar"
129 unit: "kWh/m2/d"
130 unit_latex: "kWh m$^{-2}$ d$^{-1}$"
131 mean_monthly_windspeed:
132 name: "Mean monthly wind speed"
133 unit: "m/s"
134 unit_latex: "m s$^{-1}$"
135 water_intake_depth:
136 name: "Water intake depth below surface"
137 unit: "m"
138 unit_latex: "m"
139
140print_long_descriptions: False
141...
1---
2# Output to calculate and save for reporting of results
3global:
4 print_long_descriptions: False
5 plot_profiles: True
6 plot_emission_bars: True
7 plot_landcover_piecharts: True
8
9# OUTPUTS
10outputs:
11 # CO2 emission through diffusion
12 co2_diffusion:
13 include: True
14 name: "CO2 diffusion flux"
15 gas_name: "CO2"
16 name_latex: "CO$_2$ diffusion flux"
17 unit: "gCO2eq m-2 yr-1"
18 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
19 long_description: "Total CO2 emissions from a reservoir integrated over lifetime"
20 hint: ""
21 # CO2 emission through diffusion, non-anthropogenic
22 co2_diffusion_nonanthro:
23 include: True
24 name: "Nonanthropogenic CO2 diffusion flux"
25 gas_name: "CO2"
26 name_latex: "Nonanthropogenic CO$_2$ diffusion flux"
27 unit: "gCO2eq m-2 yr-1"
28 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
29 long_description: "CO2 diffusion flux taken at (after) 100 years"
30 hint: ""
31 # CO2 preimpoundment emissions
32 co2_preimp:
33 include: True
34 name: "Preimpoundment CO2 emissions"
35 gas_name: "CO2"
36 name_latex: "Preimpoundment CO$_2$ emissions"
37 unit: "gCO2eq m-2 yr-1"
38 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
39 long_description: "CO2 emission in the area covered by the reservoir prior to impoundment"
40 hint: "Negative values denote C sink (atmosphere to land flux)"
41 # CO2 emission minus non-anthropogenic emission
42 co2_minus_nonanthro:
43 include: True
44 name: "CO2 emission minus non-anthropogenic"
45 gas_name: "CO2"
46 name_latex: "CO$_2$ emission minus non-anthropogenic"
47 unit: "gCO2eq m-2 yr-1"
48 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
49 long_description: "CO2 emissions minus non-anthropogenic over a number of years"
50 hint: "By default integrated over 100 years"
51 # Net CO2 emission
52 co2_net:
53 include: True
54 name: "Net CO2 emission"
55 gas_name: "CO2"
56 name_latex: "Net CO$_2$ emission"
57 gas_name_latex: "CO$_2$"
58 unit: "gCO2eq m-2 yr-1"
59 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
60 long_description: "Overall integrated emissions for lifetime"
61 hint: "By default integrated over 100 years"
62 # Total CO2 per year
63 co2_total_per_year:
64 include: True
65 name: "Total CO2 emission per year"
66 gas_name: "CO2"
67 name_latex: "Total CO$_2$ emission per year"
68 gas_name_latex: "CO$_2$"
69 unit: "tCO2eq yr-1"
70 unit_latex: "tCO$_{2,eq}$ yr$^{-1}$"
71 long_description: "Total CO2 emission per year integrated over lifetime"
72 hint: "By default integrated over 100 years"
73 # Total CO2 per lifetime
74 co2_total_lifetime:
75 include: True
76 name: "Total CO2 emission per lifetime"
77 gas_name: "CO2"
78 name_latex: "Total CO$_2$ emission per lifetime"
79 gas_name_latex: "CO$_2$"
80 unit: "tCO2eq"
81 unit_latex: "ktCO$_{2,eq}$"
82 long_description: "Total CO2 emission integrated over lifetime"
83 hint: "By default integrated over 100 years"
84 # CO2 emission profile (year vector defined in inputs.yaml)
85 co2_profile:
86 include: True
87 name: "CO2 emission profile"
88 gas_name: "CO2"
89 name_latex: "CO$_2$ emission profile"
90 unit: "gCO2eq m-2 yr-1"
91 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
92 long_description: "CO2 emission per year for a defined list of years"
93 hint: "Flux(year) x age - pre-impoundment - non-anthropogenic"
94 # CH4 emission via diffusion
95 ch4_diffusion:
96 include: True
97 name: "CH4 emission via diffusion"
98 gas_name: "CH4"
99 name_latex: "CH$_4$ emission via diffusion"
100 unit: "g CO2eq m-2 yr-1"
101 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
102 long_description: "CH4 emission via diffusion integrated over a number of years."
103 hint: "The default time horizon is 100 years"
104 # CH4 emission via ebullition
105 ch4_ebullition:
106 include: True
107 name: "CH4 emission via ebullition"
108 gas_name: "CH4"
109 name_latex: "CH$_4$ emission via ebullition"
110 unit: "g CO2eq m-2 yr-1"
111 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
112 long_description: "CH4 emission via ebullition"
113 hint: "Ebullition fluxes are not time-dependent"
114 # CH4 emission via degassing
115 ch4_degassing:
116 include: True
117 name: "CH4 emission via degassing"
118 gas_name: "CH4"
119 name_latex: "CH$_4$ emission via degassing"
120 unit: "g CO2eq m-2 yr-1"
121 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
122 long_description: "CH4 emission via degassing integrated for a number of years"
123 hint: "The default time horizon is 100 years"
124 # CH4 preimpoundment emission
125 ch4_preimp:
126 include: True
127 name: "Pre-impounment CH4 emission"
128 gas_name: "CH4"
129 name_latex: "Pre-impounment CH$_4$ emission"
130 unit: "g CO2eq m-2 yr-1"
131 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
132 long_description: "Pre-impounment CH4 emission"
133 hint: "Pre-impoundment emissions are subtracted from the total CH4 emission"
134 # Net CH4 emission
135 ch4_net:
136 include: True
137 name: "Net CH4 emission"
138 gas_name: "CH4"
139 name_latex: "Net CH$_4$ emission"
140 gas_name_latex: "CH$_4$"
141 unit: "g CO2eq m-2 yr-1"
142 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
143 long_description: "Net per area CH4 emission"
144 hint: ""
145 # Total CH4 per year
146 ch4_total_per_year:
147 include: True
148 name: "Total CH4 emission per year"
149 gas_name: "CH4"
150 name_latex: "Total CH$_4$ emission per year"
151 gas_name_latex: "CH$_4$"
152 unit: "tCO2eq yr-1"
153 unit_latex: "tCO$_{2,eq}$ yr$^{-1}$"
154 long_description: "Total CH4 emission per year integrated over lifetime"
155 hint: "By default integrated over 100 years"
156 # Total CH4 per lifetime
157 ch4_total_lifetime:
158 include: True
159 name: "Total CH4 emission per lifetime"
160 gas_name: "CH4"
161 name_latex: "Total CH$_4$ emission per lifetime"
162 gas_name_latex: "CH$_4$"
163 unit: "ktCO2eq"
164 unit_latex: "ktCO$_{2,eq}$"
165 long_description: "Total CH4 emission integrated over lifetime"
166 hint: "By default integrated over 100 years"
167 # CH4 emission profile (year vector defined in inputs.yaml)
168 ch4_profile:
169 include: True
170 name: "CH4 emission profile"
171 gas_name: "CH4"
172 name_latex: "CH$_4$ emission profile"
173 unit: "g CO2eq m-2 yr-1"
174 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
175 long_description: "CH4 emission per year for a defined list of years"
176 hint: ""
177 # N2O emission method A
178 n2o_methodA:
179 include: True
180 name: "N2O emission, method A"
181 gas_name: "N2O"
182 name_latex: "Net N$_2$O emission, method A"
183 unit: "g CO2eq m-2 yr-1"
184 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
185 long_description: "N2O emission, method A"
186 hint: ""
187 # N2O emission method B
188 n2o_methodB:
189 include: True
190 name: "N2O emission, method B"
191 gas_name: "N2O"
192 name_latex: "Net N$_2$O emission, method B"
193 unit: "g CO2eq m-2 yr-1"
194 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
195 long_description: "N2O emission, method B"
196 hint: ""
197 # N2O emission mean (method A + method B divided by 2)
198 n2o_mean:
199 include: True
200 name: "N2O emission, mean value"
201 gas_name: "N2O"
202 name_latex: "Net N$_2$O emission, mean value"
203 gas_name_latex: "N$_2$O"
204 unit: "g CO2eq m-2 yr-1"
205 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
206 long_description: "N2O emission factor, average of two methods"
207 hint: ""
208 # Total CH4 per year
209 n2o_total_per_year:
210 include: True
211 name: "Total N2O emission per year"
212 gas_name: "N2O"
213 name_latex: "Total N$_2$O emission per year"
214 gas_name_latex: "N$_2$O"
215 unit: "tCO2eq yr-1"
216 unit_latex: "tCO$_{2,eq}$ yr$^{-1}$"
217 long_description: "Total N2O emission per year integrated over lifetime"
218 hint: "By default integrated over 100 years"
219 # Total N2O per lifetime
220 n2o_total_lifetime:
221 include: True
222 name: "Total N2O emission per lifetime"
223 gas_name: "N2O"
224 name_latex: "Total N$_2$O emission per lifetime"
225 gas_name_latex: "N$_2$O"
226 unit: "ktCO2eq"
227 unit_latex: "ktCO$_{2,eq}$"
228 long_description: "Total N2O emission integrated over lifetime"
229 hint: "By default integrated over 100 years"
230 # N2O emission profile (year vector defined in inputs.yaml)
231 n2o_profile:
232 include: True
233 name: "N2O emission profile"
234 gas_name: "N2O"
235 name_latex: "N$_2$O emission profile"
236 unit: "g CO2eq m-2 yr-1"
237 unit_latex: "gCO$_{2,eq}2$ m$^{-2}$ yr$^{-1}$"
238 long_description: "N2O emission per year for a defined list of years"
239 hint: ""
240 # CO2 emissions plus CH4 emissions
241 co2_ch4:
242 include: True
243 name: "CO2 + CH4 emission"
244 gas_name: "CO2 + CH4"
245 name_latex: "CO$_2$ + CH$_4$ emission"
246 unit: "g CO2eq m-2 yr-1"
247 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
248 long_description: "Sum of CO2 and CH4 emissions"
249 hint: ""
250 # Total (CO2+CH4+N2O)
251 co2_ch4_n2o:
252 include: True
253 name: "CO2 + CH4 + N2O emission"
254 gas_name: "CO2 + CH4 + N2O"
255 name_latex: "CO$_2$ + CH$_4$ + N$_2$O emission"
256 unit: "g CO2eq m-2 yr-1"
257 unit_latex: "gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
258 long_description: "Sum of CO2, CH4 and N2O emissions"
259 hint: ""
260...
1# RESERVOIR
2# Preimpoundment water area fraction
3wat_area_frac_pre:
4 include: True
5 name: "Pre-impoundment water area fraction"
6 name_latex: "Pre-impoundment water area fraction"
7 unit: "-"
8 unit_latex: "-"
9 long_description: ""
10 hint: "Cannot be larger than 1"
11# Mean radiance
12mean_radiance_lat:
13 include: True
14 name: "Mean radiance at the reservoir"
15 name_latex: "Mean radiance at the reservoir"
16 unit: "kWh m-2 d-1"
17 unit_latex: "kWh m$^{-2}$ d$^{-1}$"
18 long_description: ""
19 hint: ""
20# Global radiance
21global_radiance:
22 include: True
23 name: "Cumulative global horizontal radiance at the reservoir"
24 name_latex: "Cumulative global horizontal radiance at the reservoir"
25 unit: "kWh m-2 d-1"
26 unit_latex: "kWh m$^{-2}$ d$^{-1}$"
27 long_description: ""
28 hint: "Period (day/month/year) set in method's argument - day by default"
29# Littoral area fraction
30littoral_area_frac:
31 include: True
32 name: "Percentage of reservoir's surface area that is littoral"
33 name_latex: "Percentage of reservoir's surface area that is littoral"
34 unit: "%"
35 unit_latex: "\\%"
36 long_description: ""
37 hint: ""
38# Bottom temperature in the reservoir
39bottom_temperature:
40 include: True
41 name: "Bottom (hypolimnion) temperature in the reservoir"
42 name_latex: "Bottom (hypolimnion) temperature in the reservoir"
43 unit: "deg C"
44 unit_latex: "$^o$C"
45 long_description: ""
46 hint: ""
47# Temperature at the reservoir surface
48surface_temperature:
49 include: True
50 name: "Surface (epilimnion) temperature in the reservoir"
51 name_latex: "Surface (epilimnion) temperature in the reservoir"
52 unit: "deg C"
53 unit_latex: "$^o$C"
54 long_description: ""
55 hint: ""
56# Water density at the bottom of the reservoir
57bottom_density:
58 include: True
59 name: "Water density at the bottom of the reservoir"
60 name_latex: "Water density at the bottom of the reservoir"
61 unit: "kg/m3"
62 unit_latex: "kg m$^{-3}$"
63 long_description: ""
64 hint: ""
65# Water density at the surface of the reservoir
66surface_density:
67 include: True
68 name: "Water density at the surface of the reservoir"
69 name_latex: "Water density at the surface of the reservoir"
70 unit: "kg/m3"
71 unit_latex: "kg m$^{-3}$"
72 long_description: ""
73 hint: ""
74# Thermocline depth
75thermocline_depth:
76 include: True
77 name: "Thermocline depth"
78 name_latex: "Thermocline depth"
79 unit: "m"
80 unit_latex: "m"
81 long_description: ""
82 hint: ""
83# Surface CH4 concentration
84surface_ch4_conc:
85 include: True
86 name: "Surface CH4 concentration"
87 name_latex: "Surface CH$_4$ concentration"
88 unit: "mgCH4 / m3"
89 unit_latex: "mgCH$_4$ m$^{-3}$"
90 long_description: ""
91 hint: ""
92# Trophic status of the reservoir
93trophic_status:
94 include: True
95 name: "Trophic status of the reservoir"
96 name_latex: "Trophic status of the reservoir"
97 unit: "-"
98 unit_latex: "-"
99 long_description: ""
100 hint: ""
101# Retention coefficient
102retention_coeff:
103 include: True
104 name: "Retention coefficient"
105 name_latex: "Retention coefficient"
106 unit: "-"
107 unit_latex: "-"
108 long_description: ""
109 hint: ""
110# CATCHMENT
111# Inflow P concentration
112inflow_p_conc:
113 include: True
114 name: "Influent total P concentration"
115 name_latex: "Influent total P concentration"
116 unit: "micrograms / L"
117 unit_latex: "$\\mu$g L$^{-1}$"
118 long_description: "Median influent total phosphorus concentration in micrograms/L entering the reservoir with runoff"
119 hint: ""
120# Inflow N concentration
121inflow_n_conc:
122 include: True
123 name: "Influent total N concentration"
124 name_latex: "Influent total N concentration"
125 unit: "micrograms / L"
126 unit_latex: "$\\mu$g L$^{-1}$"
127 long_description: "Median influent total nitrogen concentration in micrograms/L entering the reservoir with runoff"
128 hint: ""
129# Total P load
130phosphorus_load:
131 include: True
132 name: "Influent total P load"
133 name_latex: "Influent total P load"
134 unit: "kgP / yr-1"
135 unit_latex: "kgP~yr$^{-1}$"
136 long_description: ""
137 hint: ""
138# Total N load
139nitrogen_load:
140 include: True
141 name: "Influent total N load"
142 name_latex: "Influent total N load"
143 unit: "kgN / yr-1"
144 unit_latex: "kgN~yr$^{-1}$"
145 long_description: ""
146 hint: ""
147# EMISSIONS
148reservoir_tp:
149 include: True
150 name: "Reservoir TP concentration"
151 name_latex: "Reservoir TP concentration"
152 unit: "micrograms / L"
153 unit_latex: "$\\mu$g L$^{-1}$"
154 long_description: ""
155 hint: ""
156reservoir_tn:
157 include: True
158 name: "Reservoir TN concentration"
159 name_latex: "Reservoir TN concentration"
160 unit: "micrograms / L"
161 unit_latex: "$\\mu$g L$^{-1}$"
162 long_description: ""
163 hint: ""
164nitrogen_downstream_conc:
165 include: True
166 name: "Downstream TN concentration"
167 name_latex: "Downstream TN concentration"
168 unit: "mg / L"
169 unit_latex: "mg L$^{-1}$"
170 long_description: ""
171 hint: ""
172...
1---
2# Parameters included in reporting of results
3# GWP Factors (for all emissions)
4parameters:
5 # GWP Factors (for all emissions)
6 gwp100:
7 include: True
8 name: "Global Warming Potential for a 100-year timescale"
9 name_latex: "Global Warming Potential for a 100-year timescale"
10 unit: "-"
11 unit_latex: "-"
12 long_description: ""
13 # Conversion factors to gCO2eq m-2 yr-1
14 conv_factors:
15 include: True
16 name: "Conversion factor to gCO2eq m-2 yr-1"
17 name_latex: "Conversion factor to gCO$_{2,eq}$ m$^{-2}$ yr$^{-1}$"
18 unit: "-"
19 unit_latex: "-"
20 long_description: ""
21...
4a. Pre-impoundment emissions
Pre-impoundment emissions are emissions of landscape prior to reservoir creation. Pre-impoundment emissions depend on
1---
2# Pre impoundment CO2 emission factors (tCO2-C/ha/yr) for land cover
3# categories of inundated area – IHA land use categories.
4
5# Water bodies: n/a.
6boreal:
7 mineral:
8 bare: 0.0
9 crops: 0.0
10 forest: -0.4
11 shrubs: 0.0
12 urban: 0.0
13 wetlands: 0.0
14 organic:
15 bare: 2.8
16 crops: 7.9
17 forest: 0.6
18 shrubs: 5.7
19 urban: 6.4
20 wetlands: -0.5
21subtropical:
22 mineral:
23 bare: 0.0
24 crops: 0.0
25 forest: -1.4
26 shrubs: 0.0
27 urban: 0.0
28 wetlands: 0.0
29 organic:
30 bare: 2.0
31 crops: 11.7
32 forest: 2.6
33 shrubs: 9.6
34 urban: 6.4
35 wetlands: 0.1
36temperate:
37 mineral:
38 bare: 0.0
39 crops: 0.0
40 forest: -0.9
41 shrubs: 0.0
42 urban: 0.0
43 wetlands: 0.0
44 organic:
45 bare: 2.8
46 crops: 7.9
47 forest: 0.0
48 shrubs: 5.0
49 urban: 6.4
50 wetlands: -0.5
51tropical:
52 mineral:
53 bare: 0.0
54 crops: 0.0
55 forest: -1.4
56 shrubs: 0.0
57 urban: 0.0
58 wetlands: 0.0
59 organic:
60 bare: 2.0
61 crops: 11.7
62 forest: 15.3
63 shrubs: 9.6
64 urban: 6.4
65 wetlands: 0.0
66...
1---
2# Pre impoundment CH4 emission factors (kgCH4/ha/yr) for land cover
3# categories of inundated area – IHA land use categories.
4
5# Water bodies: Calculate following: Rasilo et al. 2015, Vachon and Prairie
6# 2013.
7boreal:
8 mineral:
9 bare: 0.0
10 crops: 0.0
11 forest: 0.0
12 shrubs: 0.0
13 urban: 0.0
14 wetlands: 0.0
15 organic:
16 bare: 6.1
17 crops: 0.0
18 forest: 4.5
19 shrubs: 1.4
20 urban: 19.6
21 wetlands: 89.0
22subtropical:
23 mineral:
24 bare: 0.0
25 crops: 0.0
26 forest: 0.0
27 shrubs: 0.0
28 urban: 0.0
29 wetlands: 0.0
30 organic:
31 bare: 7.0
32 crops: 11.7
33 forest: 2.5
34 shrubs: 7.0
35 urban: 19.6
36 wetlands: 116.3
37temperate:
38 mineral:
39 bare: 0.0
40 crops: 0.0
41 forest: 0.0
42 shrubs: 0.0
43 urban: 0.0
44 wetlands: 0.0
45 organic:
46 bare: 6.1
47 crops: 0.0
48 forest: 0.0
49 shrubs: 18.9
50 urban: 19.6
51 wetlands: 0.0
52tropical:
53 mineral:
54 bare: 0.0
55 crops: 0.0
56 forest: 0.0
57 shrubs: 0.0
58 urban: 0.0
59 wetlands: 0.0
60 organic:
61 bare: 7.0
62 crops: 75.0
63 forest: 1.8
64 shrubs: 7.0
65 urban: 19.6
66 wetlands: 41.0
67...
4b. Landscape N and P exports
1---
2# McDowell et al. 2020 landscape TN export model
3# Regression model based on global empirical solute data
4# Biomes categorical as intercept terms.
5# Model predicts natural log (mg/L) to which the bias correction factor is
6# applied. The mean annual catchment TN loading (kg yr-1) is then the predicted
7# concentration (mg/L) * annual discharge (m3 yr-1) * 10-3
8# Units and descriptions
9# mean_prec: Mean precipitation (mean monthly, mm)
10# mean_slope: Mean slope of the catchment (%)
11# cropland: Percent of catchment area covered with croplands (%)
12# soil_wet: Soil wetness (mm over profile)
13# corr: Bias correction factor (-)
14# coeff_det: Coefficient of determination (-)
15# Biomes
16# deserts: deserts & xeric shrublands
17# mediterreanan forest: mediterranean forests, woodlands & scrub
18# montane grasslands: montane grasslands & shrublands
19# temperate broadleaf and mixed: temperate broadleaf & mixed forests
20# temperate coniferous: temperate conifer forests
21# temperate grasslands: temperate grasslands, savannas & shrublands
22# tropical dry broadleaf: tropical & subtropical dry broadleaf forests
23# tropical grasslands: tropical & subtropical grasslands, savannas & shrublands
24# tropical moist broadleaf: tropical & subtropical moist broadleaf forests
25# tundra: tundra
26intercept:
27 coeff: -1.5181
28 se: 0.2136
29mean_prec:
30 coeff: -0.0089
31 se: 0.0012
32mean_slope:
33 coeff: -0.1838
34 se: 0.0193
35cropland:
36 coeff: 0.0106
37 se: 0.0011
38soil_wet:
39 coeff: 0.0055
40 se: 0.0015
41biome:
42 deserts:
43 coeff: 1.9935
44 se: 0.2435
45 mediterreanan forests:
46 coeff: 3.2782
47 se: 0.4312
48 montane grasslands:
49 coeff: 1.5238
50 se: 0.2471
51 temperate broadleaf and mixed:
52 coeff: 1.3245
53 se: 0.1829
54 temperate coniferous:
55 coeff: 1.8488
56 se: 0.2202
57 temperate grasslands:
58 coeff: 1.6756
59 se: 0.1891
60 tropical dry broadleaf:
61 coeff: 1.0801
62 se: 0.2509
63 tropical grasslands:
64 coeff: 0.5203
65 se: 0.2309
66 tropical moist broadleaf:
67 coeff: 1.2144
68 se: 0.2089
69 tundra:
70 coeff: 0.0
71 se: 0.0
72corr: 0.595
73coeff_det: 0.60
74...
1---
2# Units and descriptions
3# olsen_p: Olsen P (kg ha-1)
4# mean_prec: Mean precipitation (mean monthly, mm)
5# mean_slope: Mean slope of the catchment (%)
6# cropland: Percent of catchment area covered with croplands (%)
7# pet: Potential evapotranspiration (mean monthly, mm)
8# corr: Bias correction factor (-)
9# coeff_det: Coefficient of determination (-)
10# Biomes
11# deserts: deserts & xeric shrublands
12# mediterreanan forest: mediterranean forests, woodlands & scrub
13# montane grasslands: montane grasslands & shrublands
14# temperate broadleaf and mixed: temperate broadleaf & mixed forests
15# temperate coniferous: temperate conifer forests
16# temperate grasslands: temperate grasslands, savannas & shrublands
17# tropical dry broadleaf: tropical & subtropical dry broadleaf forests
18# tropical grasslands: tropical & subtropical grasslands, savannas & shrublands
19# tropical moist broadleaf: tropical & subtropical moist broadleaf forests
20# tundra: tundra
21intercept:
22 coeff: -4.2396
23 se: 0.2161
24olsen_p:
25 coeff: 0.01
26 se: 0.0017
27mean_prec:
28 coeff: -0.0062
29 se: 0.001
30mean_slope:
31 coeff: -0.0768
32 se: 0.0198
33cropland:
34 coeff: 0.0075
35 se: 0.0011
36pet:
37 coeff: 0.0134
38 se: 0.0029
39biome:
40 deserts:
41 coeff: 1.4481
42 se: 0.2496
43 mediterreanan forest:
44 coeff: 1.8352
45 se: 0.3854
46 montane grasslands:
47 coeff: 0.5575
48 se: 0.2531
49 temperate broadleaf and mixed:
50 coeff: 0.5216
51 se: 0.1902
52 temperate coniferous:
53 coeff: 0.8749
54 se: 0.222
55 temperate grasslands:
56 coeff: 1.0591
57 se: 0.199
58 tropical dry broadleaf:
59 coeff: 0.2002
60 se: 0.3356
61 tropical grasslands:
62 coeff: 0.9004
63 se: 0.2549
64 tropical moist broadleaf:
65 coeff: 1.0789
66 se: 0.2381
67 tundra:
68 coeff: 1.9464
69 se: 0.4573
70corr: 0.855
71coeff_det: 0.41
72...
1---
2# Land cover Phosphorus export coefficients
3# Phosphorus load factors for the land cover categories at low and
4# high land use intensities (kgP/ha/yr).
5# Prairie and Kalff (1986)
6# Where values are non-numerical they correpond to names of functions
7bare:
8 low intensity: 0.31
9 high intensity: 0.31
10snow and ice:
11 low intensity: 0.15
12 high intensity: 0.15
13urban:
14 low intensity: 2.75
15 high intensity: 2.75
16water:
17 low intensity: 0.00
18 high intensity: 0.00
19wetlands:
20 low intensity: 0.10
21 high intensity: 0.10
22crops:
23 low intensity: crop export
24 high intensity: 2.24
25# Shrubs are also called grasslands or pastures
26shrubs:
27 low intensity: 0.26
28 high intensity: 42.86
29forest:
30 low intensity: forest export
31 high intensity: 0.41
32no data:
33 low intensity: 0.0
34 high intensity: 0.0
35...
5. Phosphorus removal efficiencies
1---
2# Categories of water treatment representing the percent of phosphorus
3# human input that reaches the reservoir:
4# 1 means no removal, 0 means 100% removal
5no treatment: 1
6primary (mechanical): 0.9
7secondary biological treatment: 0.3
8tertiary: 0.1
9...
4. Visualisation and integration with GeoCARET
Note
These settings are only used for the purpose of running a demonstration of how RE-Emission can be run in conjuction with GeoCARET - see Demo. They are not needed for any other functionality of the software.
1[calculations]
2 # Combination of runoff/evapotranspiration/precipitation fields to be used for water-mass balancing at the catchment scale
3 runoff_field = "c_mar_mm_alt2"
4 # c_mar_mm for Fekete et al. / c_mar_mm_alt2 for terraclim data
5 et_field = "c_mpet_mm"
6 precipitation_field = "c_map_mm_alt1"
7# Parameters of HEET tabular data output
8[tab_data]
9 # Mandatory fields required for generating input file(s) to RE-EMISSION
10 mandatory_fields = [
11 "id", "type", "c_area_km2", "c_biome", "c_climate_zone", 'c_landcover_0',
12 'c_landcover_1', 'c_landcover_2', 'c_landcover_3', 'c_landcover_4',
13 'c_landcover_5', 'c_landcover_6', 'c_landcover_7', 'c_landcover_8',
14 "c_mar_mm", "c_map_mm", "c_masm_mm", "c_mean_olsen", "c_mean_slope_pc",
15 "c_mpet_mm", "n_population", "c_soil_type", "dam_height", "dam_lat",
16 "dam_lon", "future_dam_model", "ms_length", "name", "r_area_km2",
17 'r_landcover_bysoil_0', 'r_landcover_bysoil_1', 'r_landcover_bysoil_2',
18 'r_landcover_bysoil_3', 'r_landcover_bysoil_4', 'r_landcover_bysoil_5',
19 'r_landcover_bysoil_6', 'r_landcover_bysoil_7', 'r_landcover_bysoil_8',
20 'r_landcover_bysoil_9', 'r_landcover_bysoil_10',
21 'r_landcover_bysoil_11', 'r_landcover_bysoil_12',
22 'r_landcover_bysoil_13', 'r_landcover_bysoil_14',
23 'r_landcover_bysoil_15', 'r_landcover_bysoil_16',
24 'r_landcover_bysoil_17', 'r_landcover_bysoil_18',
25 'r_landcover_bysoil_19', 'r_landcover_bysoil_20',
26 'r_landcover_bysoil_21', 'r_landcover_bysoil_22',
27 'r_landcover_bysoil_23', 'r_landcover_bysoil_24',
28 'r_landcover_bysoil_25', 'r_landcover_bysoil_26',
29 "r_maximum_depth_m", "r_mean_annual_windspeed", 'r_mean_depth_m',
30 'r_mean_temp_1', 'r_mean_temp_2', 'r_mean_temp_3',
31 'r_mean_temp_4', 'r_mean_temp_5', 'r_mean_temp_6', 'r_mean_temp_7',
32 'r_mean_temp_8', 'r_mean_temp_9', 'r_mean_temp_10', 'r_mean_temp_11',
33 'r_mean_temp_12', "r_mghr_all_kwhperm2perday",
34 "r_mghr_may_sept_kwhperm2perday", "r_mghr_nov_mar_kwhperm2perday",
35 "r_msocs_kgperm2", "r_volume_m3", "year_commissioned",
36 "c_landuse_intensity", "c_treatment_factor"]
37 # Alternative fields, e.g. fields containing outputs required for calculating
38 # gas emissions that are derived from alternative data sources
39 alternative_fields = [
40 "c_mad_m3_pers", "c_map_mm_alt1", "c_mar_mm_alt1", "c_mar_mm_alt2",
41 "c_masm_mm_alt1", "c_mmr_mm_alt2", "c_mpet_mm_alt1",
42 "r_mghr_all_kwhperm2perday_alt1", "r_mghr_may_sept_kwhperm2perday_alt1",
43 "r_mghr_nov_mar_kwhperm2perday_alt1"]
44 # Fields that are currently not used for derivation of RE-EMISSION inputs
45 # but may be used for ghg emission calculations with other models
46 unused_inputs = [
47 "c_msbdod_kgperdm3", "c_msnc_gperkg", "c_msocc_gperkg", "c_msocc_perc",
48 "c_msocs_kgperm2", "c_mswc_molperkg", "c_mswn_molperkg",
49 "r_maximum_depth_m_alt1", "r_maximum_depth_m_alt2",
50 "r_msbdod_kgperdm3", "r_msnc_gperkg", "r_msocc_gperkg", "r_msocc_perc"]
51[shp_concat]
52[shp_concat.catchments]
53 pattern = "C_*.shp"
54 filename = "catchments.shp"
55[shp_concat.flooded_rivers]
56 pattern = "MS_*.shp"
57 filename = "rivers.shp"
58[shp_concat.dams]
59 pattern = "PS_*.shp"
60 filename = "dams.shp"
61[shp_concat.reservoirs]
62 pattern = "R_*.shp"
63 filename = "reservoirs.shp"
64[shp_concat.catchments_minus_reservoirs]
65 pattern = "N_*.shp"
66 filename = "catchments_minus_reservoirs.shp"
67[shp_output]
68[shp_output.catchments]
69 # Mapping between index of the tabular data and index of the original shp
70 match_keys = ["id", "id"]
71 # Fields to be copied from the tabular data to the shape file
72 fields = ["c_mar_mm", "c_area_km2", "n_population", "c_mean_slope_pc",
73 "c_map_mm", "c_mpet_mm", "c_masm_mm", "c_biome", "c_soil_type",
74 "c_mean_olsen", "ms_length"]
75[shp_output.dams]
76 # Mapping between index of the tabular data and index of the original shp
77 match_keys = ["id", "id"]
78 # Fields to be copied from the tabular data to the shape file
79 fields = ["dam_height", "dam_lat", "dam_lon"]
80[shp_output.reservoirs]
81 # Mapping between index of the tabular data and index of the original shp
82 match_keys = ["id", "id"]
83 # Fields to be copied from the tabular data to the shape file
84 fields = ["type", "r_volume_m3","r_area_km2", "r_maximum_depth_m", "r_mean_depth_m",
85 "r_msocs_kgperm2", "r_mghr_all_kwhperm2perday",
86 "r_mghr_may_sept_kwhperm2perday",
87 "r_mghr_nov_mar_kwhperm2perday", "r_mean_annual_windspeed",
88 "c_mar_mm", "c_area_km2", "n_population", "c_mean_slope_pc",
89 "c_map_mm", "c_mpet_mm", "c_masm_mm", "c_biome", "c_soil_type",
90 "c_mean_olsen", "ms_length"]
1[shp_output]
2[shp_output.catchments]
3 # Mapping between index of the tabular data and index of the original shp
4 match_keys = ["id", "id"]
5 # Fields to be copied from the tabular data to the shape file
6 fields = ["c_mar_mm", "c_area_km2", "c_population", "c_mean_slope_pc",
7 "c_map_mm", "c_mpet_mm", "c_masm_mm", "c_biome", "c_soil_type",
8 "c_mean_olsen", "ms_length"]
9[shp_output.dams]
10 # Mapping between index of the tabular data and index of the original shp
11 match_keys = ["id", "id"]
12 # Fields to be copied from the tabular data to the shape file
13 fields = ["t_dam_height", "dam_lat", "dam_lon"]
14[shp_output.reservoirs]
15 # Mapping between index of the tabular data and index of the original shp
16 match_keys = ["id", "id"]
17 # Fields to be copied from the tabular data to the shape file
18 fields = ["r_volume_m3","r_area_km2", "r_maximum_depth_m", "r_mean_depth_m",
19 "r_msoc_kgperm2", "r_mghr_all_kwhperm2perday",
20 "r_mghr_may_sept_kwhperm2perday",
21 "r_mghr_nov_mar_kwhperm2perday", "r_mean_annual_windspeed"]