Skip to content

0723 agricolture #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 4, 2025
24 changes: 12 additions & 12 deletions src/gcages/cmip7_scenariomip/pre_processing/reaggregation/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,8 @@ def to_required_variables(self, all_species: tuple[str, ...]) -> tuple[str, ...]
GriddingSectorComponentsReporting(
gridding_sector="Agriculture",
spatial_resolution=SpatialResolutionOption.MODEL_REGION,
input_sectors=("AFOLU|Agriculture",),
input_sectors_optional=(),
input_species_optional=(),
),
GriddingSectorComponentsReporting(
gridding_sector="Agricultural Waste Burning",
spatial_resolution=SpatialResolutionOption.MODEL_REGION,
input_sectors=(
"AFOLU|Agricultural Waste Burning",
"AFOLU|Agriculture",
"AFOLU|Land|Harvested Wood Products",
"AFOLU|Land|Land Use and Land-Use Change",
"AFOLU|Land|Other",
Expand All @@ -128,9 +121,17 @@ def to_required_variables(self, all_species: tuple[str, ...]) -> tuple[str, ...]
"BC",
"CO",
"OC",
"CO2",
"Sulfur",
),
),
GriddingSectorComponentsReporting(
gridding_sector="Agricultural Waste Burning",
spatial_resolution=SpatialResolutionOption.MODEL_REGION,
input_sectors=("AFOLU|Agricultural Waste Burning",),
input_sectors_optional=(),
input_species_optional=(),
),
GriddingSectorComponentsReporting(
gridding_sector="Aircraft",
spatial_resolution=SpatialResolutionOption.WORLD,
Expand Down Expand Up @@ -1009,18 +1010,17 @@ def to_gridding_sectors(
# because we assume that the users have used `to_complete`
# before calling this function.
for gridding_sector, components in (
("Agriculture", ["AFOLU|Agriculture"]),
(
"Agricultural Waste Burning",
"Agriculture",
[
"AFOLU|Agricultural Waste Burning",
# Hmmm, almost definitely wrong
"AFOLU|Agriculture",
"AFOLU|Land|Harvested Wood Products",
"AFOLU|Land|Land Use and Land-Use Change",
"AFOLU|Land|Other",
"AFOLU|Land|Wetlands",
],
),
("Agricultural Waste Burning", ["AFOLU|Agricultural Waste Burning"]),
("Energy Sector", ["Energy|Supply"]),
("Forest Burning", ["AFOLU|Land|Fires|Forest Burning"]),
("Grassland Burning", ["AFOLU|Land|Fires|Grassland Burning"]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,8 @@ def to_required_variables(self, all_species: tuple[str, ...]) -> tuple[str, ...]
GriddingSectorComponentsReporting(
gridding_sector="Agriculture",
spatial_resolution="model region",
input_sectors=("AFOLU|Agriculture",),
input_sectors_optional=(),
input_species_optional=(),
),
GriddingSectorComponentsReporting(
gridding_sector="Agricultural Waste Burning",
spatial_resolution="model region",
input_sectors=(
"AFOLU|Agricultural Waste Burning",
"AFOLU|Agriculture",
"AFOLU|Land|Harvested Wood Products",
"AFOLU|Land|Land Use and Land-Use Change",
"AFOLU|Land|Other",
Expand All @@ -146,8 +139,16 @@ def to_required_variables(self, all_species: tuple[str, ...]) -> tuple[str, ...]
"CO",
"OC",
"Sulfur",
"CO2",
),
),
GriddingSectorComponentsReporting(
gridding_sector="Agricultural Waste Burning",
spatial_resolution="model region",
input_sectors=("AFOLU|Agricultural Waste Burning",),
input_sectors_optional=(),
input_species_optional=(),
),
GriddingSectorComponentsReporting(
gridding_sector="Aircraft",
spatial_resolution="world",
Expand Down
Loading