Closed mnichol3 closed 4 years ago
that is because the mip
in the variable section gets overwritten by the mip
defined in the dataset
section (or, better said, it is ignored, once it finds a mip
entry in the dataset
dictionary). What you need to do is to specify multiple mip
entries in the dataset section eg:
- {dataset: GISS-base, project: CMIP6, activity: AerChemMIP, institute: NASA-GISS, mip: [Amon, AERmon], exp: season-so2, ensemble: r1i1p5f101, grid: gn}
or alternatively, don't specify the mip
at all in the dataset
dictionary and specify it individually per requested variable in each variable's section :beer:
@valeriupredoi thank you for the quick response!
Omitting the mip
key & value from the dataset
dictionary solved it!
I just wanted to note, specifying multiple mips in the dataset
dictionary
- {dataset: GISS-base, ... , mip: [Amon, AERmon], ...}
resulted in the following error:
ValueError:
Error validating data /home/nich980/esmvaltool/jgcri-fork/ESMValTool/esmvaltool/recipes/emissions_mip/recipe-initial_analysis-giss-test.yml with schema /home/nich980/anaconda3/envs/esm-dev/lib/python3.8/site-packages/esmvalcore/recipe_schema.yml
datasets.0.mip: '['Amon', 'AERmon']' is not a str.
datasets.1.mip: '['Amon', 'AERmon']' is not a str.
datasets.2.mip: '['Amon', 'AERmon']' is not a str.
datasets.3.mip: '['Amon', 'AERmon']' is not a str.
Thanks again for your help 🍺
Great that you managed to get it to work! You can read more about this topic here: https://esmvaltool.readthedocs.io/projects/esmvalcore/en/latest/recipe/overview.html#variable-and-dataset-definitions
If your question is completely answered, could you please close the issue?
Accidentally clicked the button myself :blush:
Hi all,
@ssmithClimate and I are attempting to use
AERmon
andAmon
model output from the same model/dataset in a recipe, e.g.,But I keep getting the following error:
even though the
rlut
variable defines its mip asAmon
further down in the variable section of the recipe:The recipe and diagnostic work fine when only
Amon
orAERmon
variables are used. Is there a way to use both of these datasets in the same recipe?Attached are the main_log_debug and recipe in question (converted from
.yml
to.txt
to upload to GitHub).Thank you!