gcages.sci_june_2026#
SCI components
Modules:
| Name | Description |
|---|---|
harmonisation |
Harmonisation helpers for the SCI workflow |
infilling |
Infilling configuration and related things for the SCIJune2026 workflow. |
post_processing |
SCIJune2026 post-processing. |
pre_processing |
Pre-processing part of the SCI workflow |
scm_running |
SCM-running configuration and related things for the updated workflow |
Classes:
| Name | Description |
|---|---|
SCIJune2026PreProcessor |
Pre-processor that follows the same logic as was used in SCI |
Functions:
| Name | Description |
|---|---|
create_scijune2026_harmoniser |
Create an Aneris harmoniser configured for SCI June 2026 harmoniser. |
create_scijune2026_infiller |
Infiller that follows the same logic as was used in SCI |
load_historical_emissions |
Load historical emissions for harmonisation. |
SCIJune2026PreProcessor #
Pre-processor that follows the same logic as was used in SCI
Methods:
| Name | Description |
|---|---|
__call__ |
Pre-process |
from_sci_june2026_config |
Initialise from config that was used in the June 2026 SCI release |
Attributes:
| Name | Type | Description |
|---|---|---|
emissions_out |
tuple[str, ...]
|
Names of emissions that can be included in the result of pre-processing |
n_processes |
int | None
|
Number of processes to use for parallel processing. |
progress |
bool
|
Should progress bars be shown for each operation? |
reclassifications |
Mapping[str, tuple[str, ...]] | None
|
Variables that should be reclassified as being part of another variable |
run_checks |
bool
|
If |
Source code in src/gcages/sci_june_2026/pre_processing.py
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 | |
emissions_out
instance-attribute
#
Names of emissions that can be included in the result of pre-processing
Not all these emissions need to be there, but any names which are not in this list will be removed as part of pre-processing.
n_processes
class-attribute
instance-attribute
#
Number of processes to use for parallel processing.
Set to None to process in serial.
progress
class-attribute
instance-attribute
#
progress: bool = True
Should progress bars be shown for each operation?
reclassifications
class-attribute
instance-attribute
#
run_checks
class-attribute
instance-attribute
#
run_checks: bool = True
If True, run checks on both input and output data
If you are sure about your workflow, you can disable the checks to speed things up (but we don't recommend this unless you really are confident about what you're doing).
__call__ #
Pre-process
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
in_emissions
|
DataFrame
|
Emissions to pre-process |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
Pre-processed emissions |
Source code in src/gcages/sci_june_2026/pre_processing.py
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 | |
from_sci_june2026_config
classmethod
#
from_sci_june2026_config(
run_checks: bool = True,
progress: bool = True,
n_processes: int | None = cpu_count(),
) -> SCIJune2026PreProcessor
Initialise from config that was used in the June 2026 SCI release
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
run_checks
|
bool
|
Should checks of the input and output data be performed? If this is turned off, things are faster, but error messages are much less clear if things go wrong. |
True
|
progress
|
bool
|
Should a progress bar be shown for each operation? |
True
|
n_processes
|
int | None
|
Number of processes to use for parallel processing. Set to |
cpu_count()
|
Returns:
| Type | Description |
|---|---|
SCIJune2026PreProcessor
|
Initialised Pre-processor |
Source code in src/gcages/sci_june_2026/pre_processing.py
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 | |
create_scijune2026_harmoniser #
create_scijune2026_harmoniser(
historical_emissions_file: Path,
aneris_overrides_file: Path,
harmonisation_year: int = 2023,
run_checks: bool = True,
progress: bool = True,
n_processes: int | None = cpu_count(),
) -> AnerisHarmoniser
Create an Aneris harmoniser configured for SCI June 2026 harmoniser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
historical_emissions_file
|
Path
|
File containing CMIP7 ScenarioMIP historical emissions. |
required |
aneris_overrides_file
|
Path
|
File containing aneris overrides for the global workflow. |
required |
harmonisation_year
|
int
|
Year in which to harmonise |
2023
|
run_checks
|
bool
|
Should checks of input and output data be performed? |
True
|
progress
|
bool
|
Should progress bars be shown? |
True
|
n_processes
|
int | None
|
Number of processes to use for parallel processing. |
cpu_count()
|
Returns:
| Type | Description |
|---|---|
AnerisHarmoniser
|
Harmoniser that will behave in line with CMIP7 ScenarioMIP's global workflow |
Source code in src/gcages/sci_june_2026/harmonisation.py
create_scijune2026_infiller #
create_scijune2026_infiller(
infilling_leader_emissions_file: Path,
ghg_inversions_file: Path,
historical_emissions_file: Path,
harmonisation_year: int = 2023,
pre_industrial_year: int = 1750,
run_checks: bool = True,
ur: UnitRegistry | None = None,
) -> CMIP7ScenarioMIPInfiller
Infiller that follows the same logic as was used in SCI
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
infilling_leader_emissions_file
|
Path
|
Infilling leaders database file for infilling leader emissions. |
required |
ghg_inversions_file
|
Path
|
Green house gasses inversion dataframe file. |
required |
historical_emissions_file
|
Path
|
Historical emissions file used for harmonisation |
required |
harmonisation_year
|
int
|
Year in which to harmonise |
2023
|
pre_industrial_year
|
int
|
Pre-Industrial year |
1750
|
run_checks
|
bool
|
If If you are sure about your workflow, you can disable the checks to speed things up (but we don't recommend this unless you really are confident about what you're doing). |
True
|
ur
|
UnitRegistry | None
|
UnitRegistry |
None
|
Returns:
| Type | Description |
|---|---|
CMIP7ScenarioMIPInfiller
|
|
Source code in src/gcages/sci_june_2026/infilling.py
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 | |
load_historical_emissions #
Load historical emissions for harmonisation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
historical_emissions_file
|
Path
|
Path from which to load the file |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
Historical emissions in GCAGES format |