################################################################################ 
## RECIPE DESCRIPTION  
################################################################################ 

Description:
  Author: V. Agudetse
  Info: Test for recipe splitting

################################################################################
## ANALYSIS CONFIGURATION
################################################################################

Analysis:
  Horizon: Seasonal
  Variables: # ECVs and Indicators?
    - {name: tas, freq: monthly_mean}
  Datasets:
    System: # multiple systems for single model, split if Multimodel = F
      - {name: ECMWF-SEAS5}
    Multimodel: False # single option
    Reference:
      - {name: ERA5} # multiple references for single model?
  Time:
    sdate: # list, split
      - '0101'
      - '0201'
      - '0301'
      - '0401'
      - '0501'
      - '0601'
      - '0701'
      - '0801'
      - '0901'
      - '1001'
      - '1101'
      - '1201'
    #fcst_year: '2020' # list, don't split, handled internally
    hcst_start: '1993' # single option
    hcst_end: '2016' # single option
    ftime_min: 1 # single option
    ftime_max: 6 # single option
  Region: # multiple lists, split? Add region name if length(Region) > 1
    - {name: "global", latmin: -90, latmax: 90, lonmin: 0, lonmax: 359.9}
  Regrid:
    method: bilinear ## TODO: allow multiple methods?
    type: to_system
  Workflow:
    Anomalies:
      compute: yes
      cross_validation: yes 
      save: 'none'
    Calibration:
      method: raw ## TODO: list, split?
      save: 'none'
    Skill:
      metric: mean_bias EnsCorr rps rpss crps crpss EnsSprErr  # list, don't split
      cross_validation: yes 
      save: 'all'
    Statistics:
      metric: cov std n_eff
      save: 'all'
    Probabilities:
      percentiles:  [[1/3, 2/3]]  # list, don't split
      save: 'none'
    Visualization:
      plots: skill_metrics
    Indicators:
      index: no # ? 
    Scorecards:
      execute: yes # Mandatory, yes/no 
      regions: # Mandatory, define regions over which to aggregate data
        Extra-tropical NH:  {lon.min: 0,  lon.max: 360, lat.min: 30, lat.max: 90}
        Tropics: {lon.min: 0,  lon.max: 360, lat.min: -30, lat.max: 30}
        Extra-tropical SH : {lon.min: 0,  lon.max: 360, lat.min: -90, lat.max: -30}
      start_months: NULL 
      metric: mean_bias enscorr rpss crpss enssprerr # Mandatory, define metrics to visualize in scorecard.
      metric_aggregation: 'score' # Mandatory, defines the aggregation level of the metrics.
      signif_alpha: 0.05 # Optional, to set alpha for signifiance calculation, default is 0.05.
      table_label: NULL # Optional, to add extra information to the table title.
      fileout_label: NULL # Optional, to add extra information to the output filename.
      col1_width: NULL # Optional, to set the width (cm) of the first table column, default is calculated depending on row names.
      col2_width: NULL # Optional, to set the width (cm) of the first table column, default is calculated depending on subrow names.
      columns_width: NULL # Optional, to set the width (cm) of all other columns within the table, defualt is 1.2.
      plot_legend: TRUE ## Optional, to define is the legend is included in the scorecards image, default is TRUE.
      legend_breaks: NULL # Optional, default used legend breaks from modules/Scorecards/R/tmp/Utils.R.
      legend_white_space: NULL # Optional, default is automatically calculted depend on column sizes.
      legend_width: NULL # Optional, to set the width of the lengend bars, default is 550.
      legend_height: NULL # Optional, to set the height of the legend bars, default is 50.
      label_scale: NULL # Optional, to set the scale of the legend bar lables, default is 1.4.
      round_decimal: NULL # Optional, to round the data shown in the scorecard, default is 2 (decimals).
      inf_to_na: TRUE # Optional, to set infinite values to NA, default is FALSE.
      font_size: NULL # Optional, to set the font size of the scorecard table values, default is 1.2.
      calculate_diff: FALSE # Optional, to calculate difference between two systems or two references, default is FALSE.
  ncores: 7
  remove_NAs: no # bool, don't split
  Output_format: Scorecards # string, don't split

################################################################################
## Run CONFIGURATION
################################################################################
Run:
  Loglevel: INFO
  Terminal: yes
  output_dir: /esarchive/scratch/nmilders/scorecards_data/test/
  code_dir: /esarchive/scratch/nmilders/gitlab/git_clones/s2s-suite/
  autosubmit: yes
  # fill only if using autosubmit
  auto_conf:
    script: /esarchive/scratch/nmilders/gitlab/git_clones/s2s-suite/execute_scorecards_data_loading.R # replace with the path to your script
    expid: a6a3 # replace with your EXPID
    hpc_user: bsc032878 # replace with your hpc username
    wallclock: 03:00 # hh:mm
    processors_per_job: 8 
    platform: nord3v2 
    email_notifications: yes # enable/disable email notifications. Change it if you want to.
    email_address: nadia.milders@bsc.es # replace with your email address
    notify_completed: yes # notify me by email when a job finishes
    notify_failed: yes # notify me by email when a job fails

