gcages.ghg_aggregation#
Tools for calculating greenhouse gas aggregate timeseries
Functions:
| Name | Description |
|---|---|
calculate_kyoto_ghg |
Calculate Kyoto greenhouse gas aggregate |
Attributes:
| Name | Type | Description |
|---|---|---|
ALL_KYOTO_GHGS_GCAGES |
tuple[str, ...]
|
Emissions that are included when calculating aggreage Kyoto greenhouse gas emissions |
ALL_KYOTO_GHGS_GCAGES
module-attribute
#
ALL_KYOTO_GHGS_GCAGES: tuple[str, ...] = (
"Emissions|CO2|Fossil",
"Emissions|CO2|Biosphere",
"Emissions|CH4",
"Emissions|N2O",
"Emissions|HFC125",
"Emissions|HFC134a",
"Emissions|HFC143a",
"Emissions|HFC152a",
"Emissions|HFC227ea",
"Emissions|HFC23",
"Emissions|HFC236fa",
"Emissions|HFC245fa",
"Emissions|HFC32",
"Emissions|HFC365mfc",
"Emissions|HFC4310mee",
"Emissions|NF3",
"Emissions|SF6",
"Emissions|C2F6",
"Emissions|C3F8",
"Emissions|C4F10",
"Emissions|C5F12",
"Emissions|C6F14",
"Emissions|C7F16",
"Emissions|C8F18",
"Emissions|CF4",
"Emissions|cC4F8",
)
Emissions that are included when calculating aggreage Kyoto greenhouse gas emissions
These are specified in the gcages naming convention (see [gcages.renaming.SupportedNamingConventions]).
calculate_kyoto_ghg #
calculate_kyoto_ghg(
indf: DataFrame,
indf_naming_convention: SupportedNamingConventions
| None = None,
kyoto_ghgs: tuple[str, ...] | None = None,
gwp: str = "AR6GWP100",
out_variable: str = "Kyoto GHG",
out_unit: str = "MtCO2 / yr",
ur: PlainRegistry | None = None,
variable_level: str = "variable",
unit_level: str = "unit",
) -> DataFrame
Calculate Kyoto greenhouse gas aggregate
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
indf
|
DataFrame
|
Input data |
required |
indf_naming_convention
|
SupportedNamingConventions | None
|
Naming convention used by Only required if |
None
|
kyoto_ghgs
|
tuple[str, ...] | None
|
Gases to include in the aggregate If not supplied, we use
ALL_KYOTO_GHGS_GCAGES.
See notes for |
None
|
gwp
|
str
|
GWP to use for calculating the aggregate |
'AR6GWP100'
|
out_variable
|
str
|
Name to give the output variable |
'Kyoto GHG'
|
out_unit
|
str
|
Unit to use for the aggregation This must be some variation of t CO2 / yr. |
'MtCO2 / yr'
|
ur
|
PlainRegistry | None
|
Unit registry to use for the unit conversions. If not supplied, we use openscm_units.unit_registry. |
None
|
variable_level
|
str
|
Level in |
'variable'
|
unit_level
|
str
|
Level in |
'unit'
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
Kyoto greenhouse gas aggregate timeseries |
Source code in src/gcages/ghg_aggregation.py
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 | |