Description:
  Author: V. Agudetse
  Description: ECMWF-SEAS5 Downscaling
Analysis:
  Horizon: Seasonal
  Variables:
    name: tas 
    freq: monthly_mean
    units: C
    #flux: no
  Datasets:
    System:
      name: ECMWF-SEAS5.1
    Multimodel: False
    Reference:
      name: ERA5
  Time:
    sdate: '0401'
    fcst_year: '2025'
    hcst_start: '2010'
    hcst_end: '2016'
    ftime_min: 1
    ftime_max: 3 
  Region:
   - {name: "Iberia", latmin: 34, latmax: 46, lonmin: -12, lonmax: 6}
  Regrid:
    method: 
    type: 'none'
  Workflow:
    Anomalies:
      compute: no # yes/no, default yes
      cross_validation: no # yes/no, default yes
      save: 'none' # 'all'/'none'/'exp_only'/'fcst_only'
    Calibration:
      method: bias
      save: 'none' # 'all'/'none'/'exp_only'/'fcst_only'
    Downscaling:
      # Assumption 1: leave-one-out cross-validation is always applied
      # Assumption 2: for analogs, we select the best analog (minimum distance)
      type: intbc # mandatory, 'none', 'int', 'intbc', 'intlr', 'analogs', 'logreg'.
      int_method: bilinear  # regridding method accepted by CDO.
      bc_method: bias # If type intbc. Options: 'bias', 'calibration', 'quantile_mapping', 'qm', 'evmos', 'mse_min', 'crps_min', 'rpc-based'.
      lr_method: # If type intlr. Options: 'basic', 'large_scale', '4nn'
      log_reg_method: # If type logreg. Options: 'ens_mean', 'ens_mean_sd', 'sorted_members'
      target_grid: /esarchive/recon/ecmwf/era5/monthly_mean/tas_f1h/tas_200002.nc # nc file or grid accepted by CDO
      nanalogs: # If type analgs. Number of analogs to be searched
      save: 'none' # 'all'/'none'/'exp_only'
    Skill:
      metric: rpss
      save: 'none' # 'all'/'none'
    Probabilities:
      percentiles: [[1/3, 2/3], [1/10], [9/10]]
      #percentiles: [[1/10],[9/10]]
      save: 'none' # 'all'/'none'/'bins_only'/'percentiles_only'
    Visualization:
      plots: most_likely_terciles
      multi_panel: no
      projection: cylindrical_equidistant
      NA_color: white 
      dots: no
      mask_terciles: yes
      shapefile: /esarchive/scratch/cdelgado/aspect_outputs/casestudy-wine/shp_spain/recintos_provinciales_inspire_peninbal_etrs89/recintos_provinciales_inspire_peninbal_etrs89.shp
      file_format: PNG # Final file format of the plots. Formats available: PNG, JPG, JPEG, EPS. Defaults to PDF.
    Indicators:
      index: no
  ncores: 16
  remove_NAs: yes
  Output_format: S2S4E
Run:
  filesystem: esarchive
  Loglevel: INFO
  Terminal: yes
  output_dir: /esarchive/scratch/ptrascas/R/dev-test_bigpredidata/sunset # replace with the directory where you want to save the outputs
  code_dir: /esarchive/scratch/ptrascas/R/dev-test_bigpredidata/sunset/sunset # replace with the directory where your code is


