# This file allows you to define custom plotting parameters for any region. To add 
# custom parameters for a region, simply include it following this file structure:
# If a parameter or region is not defined in this file, the default values will be
# used.
# The structure is as follows:
# Replace elements enclosed in <...> with the appropriate value.
# region:
#   <name_of_region>: (name of the region you will specify in the recipe)
#     <projection>: (cylindrical_equidistant, robinson, stereographic, lambert_europe)
#       <plot_type>: (can be skill_metrics, forecast_ensemble_mean or most_likely_terciles)
#         parameter1: value
#         parameter2: value
#         ...
#
# * How do I know which parameters are available?
# - cylindrical_equidistant: uses s2dv::PlotEquiMap()
# - robinson, stereographic, lambert_europe: uses s2dv::PlotRobinson()
# - multipanel: uses s2dv::PlotEquiMap() and s2dv::PlotLayout()
# - For most_likely_terciles, only 'cylindrical_equidistant' is available

region: #units inches
  EU: 
    latmin: 20
    latmax: 80
    lonmin: -20
    lonmax: 40
    cylindrical_equidistant: # Projection
      skill_metrics: 
        width: 7.5
        height: 8.5 
        axes_label_scale: 0.8
        bar_label_scale: 1.5
        bar_extra_margin: !expr c(2,1,0.5,1)
        dot_size: 1.7
        dot_symbol: 4
        font.main: 1 
        colNA: "white"
        country.borders: TRUE
        # shapefile_color: "0000FF00"
      forecast_ensemble_mean:
        width: 7.5
        height: 8.5
        axes_label_scale: 0.8
        bar_label_scale: 1.5
        bar_extra_margin: !expr c(2,1,0.5,1)
        dot_symbol: 4
        dot_size: 1.7
        font.main: 1
        colNA: "white"
        country.borders: TRUE
       # shapefile_color: "0000FF00"
      most_likely_terciles: 
        width: 7
        height: 9.5
        dot_size: 2
        font.main: 1
        bar_label_scale: 1 
        plot_margin: !expr c(0,1 ,7.1,1)
        bar_extra_margin: !expr c(4,0,0,0)
        colNA: "white"
        country.borders: TRUE
      extreme_probabilities:
        width: 7
        height: 9.5
        dot_size: 2
        font.main: 1
        bar_label_scale: 1
        plot_margin: !expr c(0,1 ,7.1,1)
        bar_extra_margin: !expr c(4,0,0,0)
        colNA: "white"
        country.borders: TRUE
    multipanel:
      forecast_ensemble_mean: 
        width: 8.5
        height: 8.5
    robinson:
      skill_metrics: {width: 8, height: 5}
      colNA: "white"
  NA-EU: #Norht Atlantic European region
  Iberia: 
    cylindrical_equidistant:
      skill_metrics:
        width: 8
        height: 7.5
        intylat: 2
        intxlon: 2 
        axes_label_scale: 0.8
        bar_label_scale: 1.2
        bar_extra_margin: !expr c(2, 1, 0.5, 1)
        dot_size: 1.7
        dot_symbol: 4
        font.main: 1
        colNA: "white"
      forecast_ensemble_mean:
        width: 8
        height: 7.5
        intylat: 2
        intxlon: 2
        axes_label_scale: 0.8
        bar_label_scale: 1.2
        bar_extra_margin: !expr c(2, 1, 0.5, 1)
        dot_symbol: 4
        dot_size: 1.7
        font.main: 1
        colNA: "white"
      most_likely_terciles:
        width: 8
        height: 7  
        intylat: 2
        intxlon: 2
        dot_size: 2
        plot_margin: !expr c(2, 5, 7.5, 5) 
        bar_extra_margin: !expr c(2.5, 1, 0.5, 1) # colorbar proportions
        colNA: "white"
        country.borders: FALSE
      extreme_probabilitiess:
        width: 8
        height: 7
        intylat: 2
        intxlon: 2
        dot_size: 2
        plot_margin: !expr c(2, 5, 7.5, 5)
        bar_extra_margin: !expr c(2.5, 1, 0.5, 1) # colorbar proportions
        colNA: "white"
        country.borders: FALSE
    multipanel:
      forecast_ensemble_mean: 
        width: 8.5
        height: 9.5
        title_margin_scale: 4
      skill_metrics:
        width: 8.5
        height: 9.5
        title_margin_scale: 4
    robinson:
      skill_metrics: {width: 8, height: 5}
      colNA: "white"
  Catalonia: #latmin: 40.5, latmax: 42.5, lonmin: 0, lonmax: 4
    cylindrical_equidistant:
      skill_metrics:
        width: 8
        height: 8
        intylat: 1
        intxlon: 1
        coast_col: 'lightgrey'
        coast_width : 0.0001
        axes_label_scale: 0.8
        col_oceans: 'lightgrey'
        reg_shape: 'catalonia'
        col_out_regions: 'darkgrey'
        ocean_shp: '/home/bsc/bsc032354/shapefiles/ne_10m_ocean.shp'
        comunidades_shp: '/home/bsc/bsc032354/shapefiles/Comunidades_Autonomas_ETRS89_30N.shp'
        mask_out_regions: FALSE
        bar_label_scale: 1.2
        bar_extra_margin: !expr c(2, 1, 0.5, 1)
        dot_size: 1
        dot_symbol: 16
        font.main: 1
        colNA: "white"
      forecast_ensemble_mean:
        width: 8
        height: 8
        intylat: 1
        intxlon: 1
        coast_col: 'lightgrey'
        coast_width : 0.0001
        col_ceans: 'lightgrey'
        reg_shape: 'catalonia'
        col_out_regions: 'darkgrey'
        ocean_shp: '/home/bsc/bsc032354/shapefiles/ne_10m_ocean.shp'
        comunidades_shp: '/home/bsc/bsc032354/shapefiles/Comunidades_Autonomas_ETRS89_30N.shp'
        mask_out_regions: FALSE
        axes_label_scale: 0.8
        bar_label_scale: 1.2
        bar_extra_margin: !expr c(2, 1, 0.5, 1)
        dot_symbol: 16
        dot_size: 1
        font.main: 1
        colNA: "white"
      most_likely_terciles:
        width: 8
        height: 8
        coast_col: 'lightgrey'
        coast_width : 0.0001
        intxlon: 1
        col_oceans: '#bcbddc'
        reg_shape: 'catalonia'
        col_out_regions: 'darkgrey'
        ocean_shp: '/home/bsc/bsc032354/shapefiles/ne_10m_ocean.shp'
        comunidades_shp: '/home/bsc/bsc032354/shapefiles/Comunidades_Autonomas_ETRS89_30N.shp'
        mask_out_regions: FALSE
        intylat: 1
        dot_size: 1.7
        dot_symbol: 4
        plot_margin: !expr c(2, 5, 7.5, 5)
        bar_extra_margin: !expr c(2.5, 1, 0.5, 1) # colorbar proportions
        colNA: "white"
  Mediterranean:
  Global:
    robinson:
      forecast_ensemble_mean:
        width: 8
        height: 5
      skill_metrics:
        width: 8
        height: 5
    cylindrical_equidistant:
      most_likely_terciles:
        width: 12
        height: 9
        dot_size: 2
        col_mask: 'white' 
        plot_margin: !expr c(0, 4.1, 5.5, 2.1)
  Kuwait:
    cylindrical_equidistant:
      skill_metrics:
        intxlon: 1
        intylat: 1
        country.borders: TRUE
        width: 5
        bar_label_scale: 0.8
        axes_label_scale: 0.8  
# Add other regions

