ESMValGroup / ESMValTool

ESMValTool: A community diagnostic and performance metrics tool for routine evaluation of Earth system models in CMIP
https://www.esmvaltool.org
Apache License 2.0
210 stars 123 forks source link

Issue with observations of ozone, ie ESACCI-OZONE data #3515

Open MartineMichou opened 5 months ago

MartineMichou commented 5 months ago

When running the recipe I copy below (I could not figure out how to attach a yml file...) :

Thank you for dealing with this issue. Regards Martine Michou

 # ESMValTool
---
documentation:
  title: Model evaluation with focus on toz.
  description: >
    Plot zonal mean plots of toz.
  authors:
    - lauer_axel
    - schlund_manuel
  maintainer:
    - lauer_axel

# Note: the following models are just examples
datasets:
  - {project: CMIP6, simu: 48t1_op1.01_REPRO_AOD_noli_1979, dataset: ARPv7REPRONOLIm, exp: AESM-amip, ensemble: r1i1p1f2, start_year: 1991, end_year: 2000}
  - {project: CMIP6, simu: 48t1_op1.01_RELACS_AOD_noli_1979, dataset: ARPv7RELACSNOLIm, exp: AESM-amip, ensemble: r1i1p1f2, start_year: 1991, end_year: 2000}
  - {dataset: ESACCI-OZONE, project: OBS, type: sat, version: L3, tier: 2, mip: Amon, start_year: 1997, end_year: 2006}

preprocessors:

  pp_zonal:
    regrid:
      target_grid: 2x2
      scheme:
        reference: esmf_regrid.schemes:ESMFAreaWeighted
    zonal_statistics:
      operator: mean
    climate_statistics:
      operator: mean
      period: full

diagnostics:

  zonal:
    description: Plot annual cycles including reference datasets.
    variables:
      toz:
        preprocessor: pp_zonal
        mip: AERmon
        grid: gr
    scripts:
      allplots:
        script: /home/michou/ESMValTool_2.10cnrm/Recipes_tested/From_ALauer/multi_datasets.py
        plot_folder: '{plot_dir}'
        plot_filename: '{plot_type}_{real_name}_{mip}'
        group_variables_by: variable_group
        plots:
          variable_vs_lat:
            legend_kwargs:
              loc: upper right
valeriupredoi commented 5 months ago

@MartineMichou you can attach a yaml file if you rename it to eg recipe.yml.txt - that way GH will accept the txt format; also, if you want to add inline yaml (as you did), you can format the test to appear as yaml-like with three upper backticks/backquotes and yaml like so "```yaml"

MartineMichou commented 5 months ago

Thank you Valeriu for letting me know how to deal with a yaml file in the GitHub environment. Is my description of the issue with the ESACCI-OZONE data clear enough? Thank you. Martine