Description:
  Author: An-Chi Ho
  Info: Compute Skills and Plot Scorecards with Autosubmit

Analysis:
  Horizon: seasonal
  Variables: 
    - {name: tas, freq: monthly_mean}
  Datasets:
    System: # multiple systems for single model, split if Multimodel = F
      - {name: ECMWF-SEAS5.1}
      - {name: Meteo-France-System7}
    Multimodel:
      execute: False # single option
    Reference:
      - {name: ERA5}
  Time:
    sdate: # list, split
      - '0101'
    fcst_year:
    hcst_start: '1993' # single option
    hcst_end: '2003' # 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
    type: to_system
  Workflow:
    Anomalies:
      compute: yes
      cross_validation: no
      save: 'none'
    Calibration:
      method: raw
      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 spread
      save: 'all'
    Probabilities:
      percentiles:  [[1/3, 2/3]] 
      save: 'none'
    Scorecards:
      execute: no # yes/no
      regions:
        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: -30, lat.max: -90}
      start_months: 'all'
      metric: mean_bias enscorr rpss crpss enssprerr
      metric_aggregation: 'score'
      inf_to_na: TRUE # Optional, bool: set inf values in data to NA, default is FALSE     table_label: NULL
      fileout_label: NULL
      col1_width: NULL
      col2_width: NULL
      calculate_diff: FALSE
  ncores: 8
  remove_NAs: no # bool, don't split
  Output_format: Scorecards # string, don't split

################################################################################
## Run CONFIGURATION
################################################################################
Run:
  Loglevel: INFO
  Terminal: yes
  filesystem: esarchive
  output_dir: /esarchive/scratch/vagudets/auto-s2s-outputs/
  code_dir: /home/Earth/vagudets/git/auto-s2s/
  autosubmit: yes
  # fill only if using autosubmit
  auto_conf:
    script: use_cases/ex1_2_autosubmit_scorecards/ex1_2-script.R # replace with the path to your script
    expid: a6wq # replace with your EXPID
    hpc_user: bsc032762 # replace with your hpc username
    wallclock: 03:00 # hh:mm
    processors_per_job: 16
    platform: nord3v2
    custom_directives: ['#SBATCH --exclusive'] 
    email_notifications: yes # enable/disable email notifications. Change it if you want to.
    email_address: victoria.agudetse@bsc.es # replace with your email address
    notify_completed: yes # notify me by email when a job finishes
    notify_failed: no # notify me by email when a job fails


