-
Notifications
You must be signed in to change notification settings - Fork 38
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
Improve variable alias managament #595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cheers muchly @jvegasbsc 🍺 in principle am OK with this and I trust there is no other viable way going around these types of variables; but as @bouweandela points out - another layer of complexity for the user to figure out and set? BTW I don't see the documentation entry for it?
if you resolve los conflictos then it's good from my side, amigo! cool stuff 🍺 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if you could add documentation for the new feature
6c78dde
to
6d582fa
Compare
Doc added, I also rebased it |
Co-authored-by: Bouwe Andela <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can run a recipe in the background. What changes are to be expected? |
Great! The following variables have changed names between cmip5 and cmip6:
The expected outcome from this pull request is that it works if you use one of these variables with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully with this recipe:
documentation:
description: |
Recipe that demonstrates various uses of the preprocessor derive functionality.
authors:
- andela_bouwe
maintainer:
- righi_mattia
projects:
- c3s-magic
TEST: &alb_cmip5
mip: Amon
exp: historical
start_year: 2004
end_year: 2005
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1}
- {dataset: IPSL-CM6A-LR, project: CMIP6, ensemble: r1i1p1f1, grid: gr}
diagnostics:
cmip5:
description: Test variable derivation for CMIP5 models.
variables:
usi:
<<: *alb_cmip5
start_year: 1979
end_year: 1979
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1, mip: day}
- {dataset: MPI-ESM1-2-HR,project: CMIP6, ensemble: r1i1p1f1, grid: gn, mip: SImon}
vsi:
<<: *alb_cmip5
start_year: 1979
end_year: 1979
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1, mip: day}
- {dataset: MPI-ESM1-2-HR,project: CMIP6, ensemble: r1i1p1f1, grid: gn, mip: SImon}
siu:
<<: *alb_cmip5
start_year: 1979
end_year: 1979
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1, mip: day}
- {dataset: MPI-ESM1-2-HR,project: CMIP6, ensemble: r1i1p1f1, grid: gn, mip: SImon}
siv:
<<: *alb_cmip5
start_year: 1979
end_year: 1979
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1, mip: day}
- {dataset: MPI-ESM1-2-HR,project: CMIP6, ensemble: r1i1p1f1, grid: gn, mip: SImon}
sic:
<<: *alb_cmip5
start_year: 1979
end_year: 1979
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1, mip: day}
- {dataset: MPI-ESM1-2-HR,project: CMIP6, ensemble: r1i1p1f1, grid: gn, mip: SImon}
sit:
<<: *alb_cmip5
start_year: 1979
end_year: 1979
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1, mip: day}
- {dataset: MPI-ESM1-2-HR,project: CMIP6, ensemble: r1i1p1f1, grid: gn, mip: SImon}
siconc:
<<: *alb_cmip5
start_year: 1979
end_year: 1979
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1, mip: day}
- {dataset: MPI-ESM1-2-HR,project: CMIP6, ensemble: r1i1p1f1, grid: gn, mip: SImon}
sithick:
<<: *alb_cmip5
start_year: 1979
end_year: 1979
additional_datasets:
- {dataset: GFDL-CM3, project: CMIP5, ensemble: r1i1p1, mip: day}
- {dataset: MPI-ESM1-2-HR,project: CMIP6, ensemble: r1i1p1f1, grid: gn, mip: SImon}
tro3:
<<: *alb_cmip5
o3:
<<: *alb_cmip5
scripts: null
Porting the changes from ESMValGroup/ESMValTool#950 and fixing the issue with the data finder described in ESMValGroup/ESMValTool#1593 and ESMValGroup/ESMValTool#1605
Tasks
yamllint
to check that your YAML files do not contain mistakesIf you need help with any of the tasks above, please do not hesitate to ask by commenting in the issue or pull request.
Closes ESMValGroup/ESMValTool#1605