-
Notifications
You must be signed in to change notification settings - Fork 5
/
vignette_parameters.Rmd
754 lines (520 loc) · 23.2 KB
/
vignette_parameters.Rmd
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
---
title: "Parameters"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Parameters}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
resource_files:
- vignetteFigs
---
<!-------------------------->
<!-------------------------->
# Available Paramaters
<!-------------------------->
<!-------------------------->
<p align="center"> <img src="vignetteFigs/divider.png" width="1400"></p>
Users can get a list of all available params and queries as shown below. The parameters page lists details on each parameter, how it was calculated and cites any sources when available. `gcamextractor::map_param_query` gives a list of all parameters and the corresponding queries used to extract that data from GCAM. Additionally, `gcamextractor::map_param_query` also groups the various parameters into higher level groups which can then be called in the `paramSelect` argument of `gcamextractor` to extractor all the params in those groups. The groups also include curated parameters for particular models such as `CERF` and `GO`.
```{r, eval=F}
library(gcamextractor)
gcamextractor::params # Get all params
gcamextractor::queries # Get all queries used
gcamextractor::map_param_query # Get a table of params and the relevants queries used to extract and calculate them.
```
<!-- Add params list figure -->
<p align="center"> <img src="vignetteFigs/ParamList.png" width="1200"></p>
<!-------------------------->
## Socioeconomics
<!-------------------------->
<a name="table1"></a>
**Table 1:** Summary of parameters for socioeconomics.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr); library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("socio",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<br />
<!-- ### gdpPerCapita -->
<!-- <br /> -->
<!-- ### gdp -->
<!-- <br /> -->
<!-- ### gdpGrowthRate -->
<!-- <br /> -->
<!-- ### pop -->
<!-- <br /> -->
<!-------------------------->
## Transport
<!-------------------------->
<a name="table2"></a>
**Table 2:** Summary of parameters for transport.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr); library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("transport",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<sub>\*Passenger VMT modes: 2W and 3W, bus, car, large car and truck, LDV, plane, and rail.</sub> \
<sub>\*Freight VMT modes: heavy truck, light truck, medium truck, rail, and ship.</sub> \
<sub>\*Passenger VMT fuel: biofuel, electricity, fossil fuel, gas, hydrogen, and LA-electricity.</sub> \
<sub>\*Freight VMT fuel: biofuel, coal, electricity, fossil fuel, gas.</sub>
<br />
<!-- ### transportPassengerVMTByMode -->
<!-- <br /> -->
<!-- ### transportFreightVMTByMode -->
<!-- <br /> -->
<!-- ### transportPassengerVMTByFuel -->
<!-- <br /> -->
<!-- ### transportFreightVMTByFuel -->
<!-- <br /> -->
<!-------------------------->
## Water
<!-------------------------->
<a name="table3"></a>
**Table 3:** Summary of parameters for water.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr); library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("water",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<sub>\*Water consumption sectors: animal, domestic, electric, industry, irrigation, and primary.</sub> \
<sub>\*Water withdrawal sectors: agriculture, electricity, industry, livestock, mining, municipal, and desalination.</sub> \
<sub>\*Crop: biomass, corn, fibercrop, fodderherb, miscellaneous crop, oil crop, other grain, palm fruit, rice, root tuber, sugar crop, wheat, and fodder grass.</sub>
<br />
<!-- ### watConsumBySec -->
<!-- <br /> -->
<!-- ### watWithdrawBySec -->
<!-- <br /> -->
<!-- ### watWithdrawByCrop -->
<!-- <br /> -->
<!-- ### watBioPhysCons -->
<!-- <br /> -->
<!-- ### watIrrWithdrawBasin -->
<!-- <br /> -->
<!-- ### watIrrConsBasin -->
<!-- <br /> -->
<!-- ### watSupRunoffBasin -->
<!-- <br /> -->
<!-- ### waterWithdrawROGW -->
<!-- <br /> -->
<!-------------------------->
## Agriculture
<!-------------------------->
<a name="table4"></a>
**Table 4:** Summary of parameters for agriculture.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr); library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("ag",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<br />
<!-- ### agProdbyIrrRfd -->
<!-- <br /> -->
<!-- ### agProdBiomass -->
<!-- <br /> -->
<!-- ### agProdForest -->
<!-- <br /> -->
<!-- ### agProdByCrop -->
<!-- <br /> -->
<!-------------------------->
## Livestock
<!-------------------------->
<a name="table5"></a>
**Table 5:** Summary of parameters for livestock.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr); library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("livestock",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<br />
<!-- ### livestock_MeatDairybyTechMixed -->
<!-- <br /> -->
<!-- ### livestock_MeatDairybyTechPastoral -->
<!-- <br /> -->
<!-- ### livestock_MeatDairybyTechImports -->
<!-- <br /> -->
<!-- ### livestock_MeatDairybySubsector -->
<!-- <br /> -->
<!-------------------------->
## Land Use
<!-------------------------->
<a name="table6"></a>
**Table 6:** Summary of parameters for land use.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr); library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("land",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<sub>\*Aggregated land type: crops, forest, natural other, natural other grass, natural other tree, pasture, and crop</sub> \
<sub>\*Detailed land type: biomassGrass, biomassTree, Corn, FiberCrop, Forest, Grassland, MiscCrop, OilCrop, OtherArableLand, OtherGrain, PalmFruit, Pasture, ProtectedGrassland, ProtectedShrubland, ProtectedUnmanagedForest, ProtectedUnmanagedPasture, Rice, RootTuber, Shrubland, SugarCrop, UnmanagedForest, UnmanagedPasture, UrbanLand, Wheat, FodderGrass, FodderHerb, RockIceDesert, and Tundra</sub>
<br />
<!-- ### landIrrRfd -->
<!-- <br /> -->
<!-- ### landIrrCrop -->
<!-- <br /> -->
<!-- ### landRfdCrop -->
<!-- <br /> -->
<!-- ### landAlloc -->
<!-- <br /> -->
<!-- ### landAllocByCrop -->
<!-- <br /> -->
<!-- ### landAllocDetail -->
<!-- <br /> -->
<!-------------------------->
## Emissions
<!-------------------------->
<a name="table7"></a>
**Table 7:** Summary of parameters for emissions.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr); library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("emiss",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<br />
<!-- ### emissNonCO2BySector -->
<!-- <br /> -->
<!-- ### emissNonCO2BySectorGWPAR5 -->
<!-- <br /> -->
<!-- ### emissNonCO2BySectorGTPAR5 -->
<!-- <br /> -->
<!-- ### emissNonCO2BySectorOrigUnits -->
<!-- <br /> -->
<!-- ### emissNonCO2ByResProdGWPAR5 -->
<!-- <br /> -->
<!-- ### emissNonCO2ByResProdGTPAR5 -->
<!-- <br /> -->
<!-- ### emissCO2BySector -->
<!-- <br /> -->
<!-- ### emissCO2BySectorNoBio -->
<!-- <br /> -->
<!-- ### emissBySectorGTPAR5FFI -->
<!-- <br /> -->
<!-- ### emissBySectorGTPAR5LUC -->
<!-- <br /> -->
<!-- ### emissMethaneBySourceGWPAR5 -->
<!-- <br /> -->
<!-- ### emissMethaneBySourceGTPAR5 -->
<!-- <br /> -->
<!-------------------------->
## Electricity
<!-------------------------->
<a name="table8"></a>
**Table 8:** Summary of parameters for electricity.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr); library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("elec",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<sub>\*Fuel: biomass, coal, gas, geothermal, hydro, nuclear, refined liquids, solar, and wind.</sub> \
<sub>\*Final electricity sectors: building, industry, and transport.</sub>
<br />
### elecByTechTWh
`elecByTechTWh` uses "elec gen by gen tech and cooling tech" query and converts electricity generation of GCAM raw output from EJ to TWh:
$$elecByTechTWh = elecByTechEJ_{GCAM} \times convEJ2TWh$$
where `convEJ2TWh` is the conversion constant from EJ to TWh, 1 EJ = 277.7778 TWh.
`gcamextractor::readgcam` also aggregates "rooftop_pv" into "solar" category in the technology subsector (shown in "class1" colomn).
```{r eval=F}
library(gcamextractor)
dataGCAM <- gcamextractor::readgcam(dataProjFile = gcamextractor::example_GCAMv52_2050_proj,
paramsSelect = 'elecByTechTWh',
regionsSelect = 'USA',
folder = "my_output_folder")
```
<br />
### elecCapByFuel
`elecCapByFuel` calculates electricity capacity (GW) based on the output from `elecByTechTWh`:
$$elecCapByFuel = \frac{elecByTechTWh \times 1000}{8760 \times gcamCapacityFactor}$$
`gcamCapacityFactor` is calculated as an average of the capacity factors of the technologies within each subsector (See [Table GCAM Capacity Factors](#table_gcamCapacityFactor)) based on the data from:
- Global technology capacity factor from "GCAM-FOLDER\\input\\gcamdata\\inst\\extdata\\energy\\A23.globaltech_capacity_factor.csv"
- USA renewable technology capacity factors by States from "GCAM-FOLDER\\input\\gcamdata\\inst\\extdata\\gcam-usa\\NREL_us_re_capacity_factors.csv"
- Hydrogen fuel cell capacity factor from https://www.eia.gov/todayinenergy/detail.php?id=35872 and https://www.nrel.gov/analysis/tech-cap-factor.html
Exceptions in calculating `gcamCapacityFactor` include:
- For "solar" capacity factor the CSP_storage capacity factor value of 0.65 was excluded from the average.
- The "hydro" capacity factor was sourced from Global CCS Institute "Renewable power generation costs in 2012: an overview" - 5.2 Capacity factors for hydropower, since hydropower is calculated endogenously within GCAM.
- No cogeneration capacity factor "n CHP" was given.
- rooftop_pv was assumed the same as solar average (5) grid_storage assumed to have a high cap factor equal to that of nuclear
<a name="table_gcamCapacityFactor"></a>
**Table GCAM Capacity Factors:** Averaged capacity factor for electricity generation by generation technology.
| Subsector (class1) | Average capacity factor from 1971 to 2100 |
|---|---|
| coal | 0.8125 |
| gas | 0.816667 |
| oil | 0.816667 |
| biomass | 0.825 |
| nuclear | 0.9 |
| geothermal | 0.9 |
| hydro | 0.5 |
| wind | 0.37 |
| solar | 0.216667 |
| rooftop_pv | 0.216667 |
| hydrogen | 0.8 |
| grid_storage | 0.9 |
```{r eval=F}
library(gcamextractor)
dataGCAM <- gcamextractor::readgcam(dataProjFile = gcamextractor::example_GCAMv52_2050_proj,
paramsSelect = 'elecCapByFuel',
regionsSelect = 'USA',
folder = "my_output_folder")
```
<br />
<!-- ### elecFinalBySecTWh -->
<!-- <br /> -->
<!-- ### elecFinalByFuelTWh -->
<!-- <br /> -->
<!-------------------------->
## Energy
<!-------------------------->
<a name="table9"></a>
**Table 9:** Summary of parameters for energy.
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(kableExtra); library(dplyr);library(gcamextractor)
table_raw <- map_param_query%>%filter(grepl("energy",group))
if(any(!grepl("^no$",unlist(table_raw$gcamdata%>%unique())))){
table_kable <- table_raw %>% dplyr::select(param,query,gcamdata)} else {
table_kable <- table_raw %>% dplyr::select(param,query)
}
table_kable %>%
kbl() %>%
kable_styling(bootstrap_options = c("bordered","striped", "hover", "condensed", "responsive")) %>%
row_spec(0, background = "#2A2A2A", color = "white")
```
<sub>\*Final energy sectors: building, industry, transport, transport international aviation, and transport international ship.</sub> \
<sub>\*Building final energy subsectors: commercial cooling and heating, commercial others, residential cooling and heating, and residential others.</sub> \
<sub>\*Final energy fuel: biomass, coal, electricity, gas, hydrogen, liquids, liquids av, liquids shp, and other.</sub>
<br />
<!-- ### energyPrimaryByFuelEJ -->
<!-- <br /> -->
<!-- ### energyPrimaryRefLiqProdEJ -->
<!-- <br /> -->
<!-- ### energyFinalConsumBySecEJ -->
<!-- <br /> -->
<!-- ### energyFinalByFuelBySectorEJ -->
<!-- <br /> -->
<!-- ### energyFinalSubsecByFuelTranspEJ -->
<!-- <br /> -->
<!-- ### energyFinalSubsecByFuelBuildEJ -->
<!-- <br /> -->
<!-- ### energyFinalSubsecByFuelBuildEJ -->
<!-- <br /> -->
<!-- ### energyFinalSubsecByFuelIndusEJ -->
<!-- <br /> -->
<!-- ### energyFinalSubsecBySectorBuildEJ -->
<!-- <br /> -->
<!-- ### energyFinalConsumByIntlShpAvEJ -->
<!-- <br /> -->
<!-------------------------->
<!-------------------------->
# Data for Specific Models
<!-------------------------->
<!-------------------------->
<p align="center"> <img src="vignetteFigs/divider.png" width="1400"></p>
<!-------------------------->
## CERF
<!-------------------------->
Use `cerf` for the `paramSelect` argument in `gcamextractor` to extract the relevant variables needed for the `CERF` model (https://github.com/IMMM-SFA/cerf).
```{r eval=F}
library(gcamextractor)
path_to_gcam_database <- "E:/gcamfolder/output/database_ref" # Change to your path.
path_to_gcam_projfile <- "E:/my_proj_file.proj" # Change to your .proj file path.
path_to_gcamdata_folder <- "E:/gcamfolder/input/gcamdata"
gcamextractor::params # view available parameters
dataGCAM <- gcamextractor::readgcam(gcamdatabase = path_to_gcam_database,
dataProjFile = path_to_gcam_projfile # Optional. Or cerf_proj_file.proj
gcamdata_folder = path_to_gcamdata_folder,
paramsSelect = "cerf",
folder = "cerf") # Set to "All" to read in all available params
df <- dataGCAM$data; df
dfParam <- dataGCAM$dataAggParam; dfParam
dfClass1 <- dataGCAM$dataAggClass1; dfClass1
dfClass2 <- dataGCAM$dataAggClass1; dfClass2
```
The parameters extracted for CERF are as follows with links to the relevant parameters explanation:
<a name="table_cerf"></a>
**Table: CERF**
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(pander)
mytable = data.frame(
Parameter = c("elec_lifetime_yr",
"elec_lifetime_scurve_yr",
"elec_capacity_factor_usa_in",
"elec_variable_om_2015USDperMWh",
"elec_variable_om_escl_rate_2015USDperMWh",
"elec_fuel_price_2015USDperMBTU",
"elec_fuel_price_escl_rate_2015USDperMBTU",
"elec_cap_usa_GW",
"energy_fuel_co2_content_tonsperMBTU",
"elec_carbon_capture_rate_fraction",
"elec_carbon_capture_escl_rate_fraction",
"elec_heat_rate_BTUperkWh"),
Description = c("Technology Lifetime (Yr)",
"Base year S-Curve Lifetime, Steepness, half life",
"Capacity Factor assumptions for US States by investment segments (baseline, intermediate, subpeak, peak",
"Variable OnM cost (2015 USD/MWh)",
"Variable OnM cost escalation rate (fraction)",
"Fuel Price (2015 USD/MBTU)",
"Fuel Price Escalation Rate (fraction)",
"Installed Capacity in GW",
"Fuel CO2 Content (Tons per MBTU)",
"Carbon Capture Rate (fraction)",
"Carbon Capture Escalation Rate (fraction)",
"Heat Rate (BTU per kWh)"
),
Unit = c("year",
"* lifetime (yr)\
\n* steepness (no units)\
\n* half life (yr)",
"None",
"2015 USD/MWh",
"2015 USD/MWh",
"2015 USD/MBTU",
"2015 USD/MBTU",
"GW",
"Tons per MBTU",
"Fraction",
"Fraction",
"BTU per kWh"),
Queries = c("NA",
"NA",
"elec investment capacity factor",
"elec operating costs by tech and vintage",
"elec operating costs by tech and vintage",
"prices by sector",
"prices by sector",
"elec capacity by tech and vintage",
"NA",
"NA",
"NA",
"elec coeff"),
`GCAM version tested` = c("v5.3",
"v5.3",
"v5.3",
"v5.3",
"v5.3",
"v5.3",
"v5.3",
"v5.3",
"v5.3",
"v5.3",
"v5.3",
"v5.3"),
`gcamdata files` = c("* L223.TechLifetime_Dispatch\
\n* L2242.TechLifetime_hydro\
\n* L2233.GlobalTechLifetime_elec_cool\
\n* L2233.GlobalIntTechLifetime_elec_cool",
"* L2244.TechSCurve_nuc_gen2_USA\
\n* L223.TechSCurve_Dispatch\
\n* L2241.TechSCurve_coalret_vintage_dispatch_gcamusa\
\n* L2233.GlobalTechSCurve_elec_cool",
"None",
"None",
"None",
"None",
"None",
"None",
"* L2261.CarbonCoef_bio_USA\
\n* L202.CarbonCoef\
\n* L222.CarbonCoef_en_USA",
"* L223.TechCarbonCapture_Dispatch\
\n* L2233.GlobalTechCapture_elec_cool",
"* L223.TechCarbonCapture_Dispatch\
\n* L2233.GlobalTechCapture_elec_cool",
"None")
)
pander::pander(mytable, keep.line.breaks = TRUE, style = 'grid', justify = 'left',
split.tables=Inf, split.cells=100)
```
<!-------------------------->
## GO
<!-------------------------->
Use `cerf` for the `paramSelect` argument in `gcamextractor` to extract the relevant variables needed for the `CERF` model (https://github.com/IMMM-SFA/cerf).
```{r eval=F}
library(gcamextractor)
path_to_gcam_database <- "E:/gcamfolder/output/database_ref" # Change to your path.
path_to_gcam_projfile <- "E:/my_proj_file.proj" # (OPTIONAL) Change to your .proj file path.
gcamextractor::params # view available parameters
dataGCAM <- gcamextractor::readgcam(gcamdatabase = path_to_gcam_database,
dataProjFile = path_to_gcam_projfile # Optional. Or go_proj_file.proj
paramsSelect = "go",
folder = "go") # Set to "All" to read in all available params
df <- dataGCAM$data; df
dfParam <- dataGCAM$dataAggParam; dfParam
dfClass1 <- dataGCAM$dataAggClass1; dfClass1
dfClass2 <- dataGCAM$dataAggClass1; dfClass2
```
The parameters extracted for GO are as follows with links to the relevant parameters explanation:
<a name="table_cerf"></a>
**Table: GO**
```{r, results = 'show', eval=TRUE, echo=FALSE, warning=FALSE, error = FALSE, message = FALSE}
library(pander)
mytable = data.frame(
Parameter = c("elec_fuel_price_2015USDperMBTU",
"elec_heat_rate_MBTUperMWh"),
Description = c("Fuel Price (2015 USD/MBTU)",
"Heat Rate (MBTU per MWh)"
),
Unit = c("2015 USD/MBTU",
"MBTU per MWh"),
Queries = c("prices by sector",
"elec coeff"),
`GCAM version tested` = c("v5.3",
"v5.3"),
`gcamdata files` = c("None",
"None")
)
pander::pander(mytable, keep.line.breaks = TRUE, style = 'grid', justify = 'left',
split.tables=Inf, split.cells=100)
```