ACCESS-NRI / CMIP7-Hackathon

3 stars 1 forks source link

How to use observational dataset in a recipe? #24

Closed yyplanton closed 7 months ago

yyplanton commented 7 months ago

I am trying to create a metric using 'ts'. According to the list of available observations I should be able to use HadISST or CFSR or others. If I call any observational dataset I obtain the exact same error: KeyError: 'diagnostic' (see attachment). I assume that ESMValTool cannot find the asked variable. But I am nut sure what is the error. Note that the recipe runs if I remove observational datasets. main_log_debug.txt recipe_enso_amplitude.txt

headmetal commented 7 months ago

We do have a simple ESMValTool ENSO example here that uses HadISST that might be helpful?

In this recipe (enso_analysis.yml) we identify and load the OBS data under diagnostics>variables and diagnostics>additional_datasets and not under datasets as in your script above.

yyplanton commented 7 months ago

Thank you. I made some minor changes an now my code runs.

headmetal commented 7 months ago

Great, no problems.