-
Notifications
You must be signed in to change notification settings - Fork 5
CMIP7 workflow v0 #77
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
Draft
jkikstra
wants to merge
154
commits into
IAMconsortium:main
Choose a base branch
from
jkikstra:cmip7_v0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
no harmonization report yet no gridded data yet
* delete data after 2100 * `scens_iam_wide` instead of less-descriptive `model`
TODO: use local config file for data location
tested harmonization did not test gridding
…missions_harmonization_historical
This reverts commit 2cd8b12.
Pattern harmonisation (fix spatial pattern deviations to 2023 CEDS)
CMIP7 v0-3-0 for first alpha upload ESGF (under CMIP6Plus)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to implement a first version [v0] of the ScenarioMIP/CMIP7 emissions harmonization and gridding workflow.
It takes data from:
How to use
environment.ymlWhen all this is done, you should be able to run workflow-cmip7.py
TODO
Common (simplified) TODO list:
historical emissions:
CMIP7 workflow:
comparing harmonization
Long raw todo list (notes to self)
see TODO list in docs/source/index.rst
base_yearcountry_combinationsstill needed when SSP data have been updated?Updated to-do list (28.03.2025):
Updated short-term to-do list (03.04.2025):
workflow-rescue.pyscens_iam_wide = (scens_iam.rename.pivot_table(index=[order_array]). does not affect downscaling outcomeshist_wide = (hist_long.rename.pivot_table(index=[order_array]). does not affect downscaling outcomesCopied from index.rst:
The list below is ordered.
v0
v1
update CEDS data to 2025 version
test out global-first harmonization: adding test file for top-down harmonization iiasa/aneris#79
test out 10 vs 30 yr grids for biomass burning
create interpolation methods between 2020 and 2025
base_year(possible after updating GFED CMIP7 ) + necessary IAM interpolation - annikause interpolated input files, and move harmonization to 2022
update gridding files with new CEDS data (from ESGF, or direct download?)
update to BB4CMIP7 national GFED data (from emissions_harmonization_historical?)
new SSP data
is
country_combinationsstill needed?create mapping file with regionmapping following ssp_submission scenario explorer mapping style, using common-definitions / nomenclature
register multiple models
try new harmonization algorithms
update variabledefs-cmip7_*.csv to have CDR
deal properly with units and minor gases (NO)
remove alkalinity option?
remake rasters .nc using data (https://iiasahub.sharepoint.com/:f:/r/teams/RESCUE/Shared%20Documents/WP%201/data_2024_09_16/gridding_process_files/ceds_input/input/gridding?csf=1&web=1&e=1OHegg) and script (notebooks\gridding_data\generate_non_ceds_proxy_netcdfs.py)
think about moving stuff directly into emissions_historical_harmonization
check/update
ssp_comb_indexraster.ncproduce netCDF files for REMIND
deal with small countries having no GDP data
historical data: check e.g. AWB and Forest Burning (World) data. 2015 and 2020 emissions, but suspiciously zero in the years between and after?
add a CMIP7 version of
rescue_utils.DS_ATTRSin a cmip7_utils fileHarmonization code understanding:
all_countries; workflow.regionmapping.data.index; only 194 long? GDP proxy?WorkflowDriver.country_groupsIterator worksadd test that scenario region names are all covered in the regionmapping
From updated yaml for regionmapping files jkikstra/concordia#3: ensure that there is a good strategy for missing countries (minor effect, we have most countries)
Details
I think we need a strategy of how to deal with small territories/missing countries.
data:
gfed (iso mask)
ceds (aggregate data)
ceds (proxy masks): https://iiasahub.sharepoint.com/:f:/r/sites/eceprog/Shared%20Documents/Projects/CMIP7/IAM%20Data%20Processing/concordia_cmip7_v0_testing/input/gridding/20250523/Jarmo_files/mask?csf=1&web=1&e=ppMlcZ
IAM region mappings
GDP
For this, we want to understand
how the current workflow deals with emissions for 'missing' regions
how we make sure we're not 'losing' any emissions
how we make sure that the downsclaing of combined regions makes sense
how we make sure that the gridding of combined regions makes sense
other