-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSimpleESM_script.R
30 lines (18 loc) · 1009 Bytes
/
SimpleESM_script.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
### Calculation of SOC (and N) stocks, in t/ha, at fixed depth (FD) and Equivalent Soil Mass (ESM) ###
# Authors: Fabien FERCHAUD and Florent CHLEBOWSKI
# Contact: Fabien FERCHAUD (INRAE) - [email protected]
# Date: 2022-12-16
# Options -----------------------------------------------------------------
# Name of the input .xlsx file
input_file_name <- "Test_SimpleESM.xlsx"
# Name of the output directory
output_directory_name <- "Example"
# Option for the reference soil mass ("manual" or "auto")
RefM_option <- "manual"
# Option for calculations - elements: one or two elements ("SOC_only" or "SOC_and_N")
E_calc_option <- "SOC_and_N"
# Option for calculations - isotopes: 13C, or 13C and 15N, or not ("13C" or "13C_15N" or "no")
I_calc_option <- "13C_15N"
# Call SimpleESM function -------------------------------------------------
source("SimpleESM_function.R")
SimpleESM(input_file_name, output_directory_name, RefM_option, E_calc_option, I_calc_option)