Skip to content

Commit 00223c0

Browse files
committed
Tried using NMSEs and bigger box
1 parent fa4397a commit 00223c0

4 files changed

+52
-6
lines changed

results/NMSE_big_box.txt

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
parameters values
2+
beta 1.196
3+
q10_rh 3.52
4+
diff 2
5+
6+
Objective Function Value: 0.00157
7+
8+
CO2 MSE: 296
9+
T MSE: 0.0588
10+
RMSE: 17.2
11+
12+
***Key Metrics***
13+
TCRE: 1.47
14+
TCR: 1.82
15+
16+
***Historical Warming and ERF***
17+
GSAT Warming: 0.507
18+
Ocean Heat Content Change: 331
19+
Total Aerosol ERF: -1.24
20+
WMGHG ERF: 3.23
21+
Methane ERF: 0.535
22+
23+
***Future Warming***
24+
scenario start end GSAT
25+
ssp119 2021 2040 0.631
26+
ssp119 2041 2060 0.719
27+
ssp119 2081 2100 0.566
28+
ssp126 2021 2040 0.646
29+
ssp126 2041 2060 0.894
30+
ssp126 2081 2100 0.863
31+
ssp245 2021 2040 0.652
32+
ssp245 2041 2060 1.1
33+
ssp245 2081 2100 1.65
34+
ssp370 2021 2040 0.662
35+
ssp370 2041 2060 1.23
36+
ssp370 2081 2100 2.61
37+
ssp585 2021 2040 0.784
38+
ssp585 2041 2060 1.57
39+
ssp585 2081 2100 3.47
1.13 MB
Loading

scripts/graph_comparison_plots.R

+10-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TEMP_PATH <-
2222
INI_FILE <- system.file("input/hector_ssp245.ini", package = "hector")
2323
PARAMS <- c(BETA(), Q10_RH(), DIFFUSIVITY())
2424

25-
OUTPUT <- file.path(RESULTS_DIR, "comparison_plots.jpeg")
25+
OUTPUT <- file.path(RESULTS_DIR, "nmse_box_comparison_plots.jpeg")
2626

2727

2828
source(file.path(SCRIPTS_DIR, "major_functions.R"))
@@ -52,7 +52,14 @@ nmse_data <- run_hector(ini_file = INI_FILE,
5252
vars = c(GMST(), CONCENTRATIONS_CO2()))
5353
nmse_data$scenario <- "Hector - Fit to NMSEs"
5454

55-
hector_data <- rbind(default_data, nmse_data)
55+
nmse_bigbox_data <- run_hector(ini_file = INI_FILE,
56+
params = PARAMS,
57+
vals = c(1.196, 3.52, 2),
58+
yrs = 1750:2014,
59+
vars = c(GMST(), CONCENTRATIONS_CO2()))
60+
nmse_bigbox_data$scenario <- "Hector - Fit to NMSEs, Big Box"
61+
62+
hector_data <- rbind(default_data, nmse_data, nmse_bigbox_data)
5663
hector_data$lower <- hector_data$value
5764
hector_data$upper <- hector_data$value
5865

@@ -62,7 +69,7 @@ ggplot(data = comb_data, aes(x = year, y = value, color = scenario)) +
6269
geom_ribbon(data =
6370
filter(comb_data, scenario == "historical" & variable == GMST()),
6471
aes(ymin = lower, ymax = upper),
65-
fill = 'aquamarine1',
72+
fill = 'orchid1',
6673
color = NA) +
6774
geom_line() +
6875
facet_wrap(~ variable, scales = "free") +

scripts/initial_norm_exp.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TEMP_PATH <-
2222
INI_FILE <- system.file("input/hector_ssp245.ini", package = "hector")
2323
PARAMS <- c(BETA(), Q10_RH(), DIFFUSIVITY())
2424

25-
OUTPUT <- file.path(RESULTS_DIR, "initial_norm_exp.txt")
25+
OUTPUT <- file.path(RESULTS_DIR, "NMSE_big_box.txt")
2626

2727

2828
source(file.path(SCRIPTS_DIR, "major_functions.R"))
@@ -36,8 +36,8 @@ obs_data <- rbind(co2_data, temp_data)
3636
best_pars <- run_optim(obs_data = obs_data,
3737
ini_file = INI_FILE,
3838
params = PARAMS,
39-
lower = c(0.5 - 0.232, 2.2 - 0.44, 2.3 - 0.1),
40-
upper = c(0.5 + 0.232, 2.2 + 0.44, 2.3 + 0.1),
39+
lower = c(0, 2.2 - 0.44 * 3, 2.3 - 0.1 * 3),
40+
upper = c(0.5 + 0.232 * 3, 2.2 + 0.44 * 3, 2.3 + 0.1 * 3),
4141
yrs = 1750:2014,
4242
vars = c(GMST(), CONCENTRATIONS_CO2()),
4343
error_fn = mean_T_CO2_nmse,

0 commit comments

Comments
 (0)