diff --git a/arpav_ppcv/bootstrapper/configurationparameters.py b/arpav_ppcv/bootstrapper/configurationparameters.py index c208faf5..3837cf11 100644 --- a/arpav_ppcv/bootstrapper/configurationparameters.py +++ b/arpav_ppcv/bootstrapper/configurationparameters.py @@ -6,6 +6,85 @@ def generate_configuration_parameters() -> list[ConfigurationParameterCreate]: return [ + ConfigurationParameterCreate( + name="climatological_variable", + display_name_english="Variable", + display_name_italian="Variabile", + description_english="Climatological variable", + description_italian="Variabile climatologica", + allowed_values=[ + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="cdd", + display_name_english="CDD", + display_name_italian="CDD", + description_english="Consecutive Cold Days", + description_italian="Giorni secchi", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="fd", + display_name_english="FD", + display_name_italian="FD", + description_english="Frozen Days", + description_italian="Giorni di gelo", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="pr", + display_name_english="PR", + display_name_italian="PR", + description_english="Rainfall", + description_italian="Precipitazione", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="r95ptot", + display_name_english="R95pTOT", + display_name_italian="R95pTOT", + description_english="Extreme rainfall", + description_italian="Precipitazione estrema", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="snwdays", + display_name_english="SNWDAYS", + display_name_italian="SNWDAYS", + description_english="Days with new snow", + description_italian="Giorni con neve nuova", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="su30", + display_name_english="SU30", + display_name_italian="SU30", + description_english="Hot days", + description_italian="Giorni caldi", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="tas", + display_name_english="TAS", + display_name_italian="TAS", + description_english="Mean temperature", + description_italian="Temperatura media", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="tasmax", + display_name_english="TASMAX", + display_name_italian="TASMAX", + description_english="Maximum temperature", + description_italian="Temperatura massima", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="tasmin", + display_name_english="TASMIN", + display_name_italian="TASMIN", + description_english="Minimum temperature", + description_italian="Temperatura minima", + ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="tr", + display_name_english="TR", + display_name_italian="TR", + description_english="Tropical nights", + description_italian="Notti tropicali", + ), + ], + ), ConfigurationParameterCreate( name="scenario", display_name_english="Scenario", @@ -140,6 +219,13 @@ def generate_configuration_parameters() -> list[ConfigurationParameterCreate]: "Stagione climatologica autunnale (settembre, ottobre, novembre)" ), ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="year", + display_name_english="Year", + display_name_italian="Anno", + description_english="Whole year", + description_italian="L'intero anno", + ), ], ), ConfigurationParameterCreate( @@ -235,6 +321,13 @@ def generate_configuration_parameters() -> list[ConfigurationParameterCreate]: description_english="MPI-ESM-LR-REMO2009 model", description_italian="Modello MPI-ESM-LR-REMO2009", ), + ConfigurationParameterValueCreateEmbeddedInConfigurationParameter( + name="barometro_climatico", + display_name_english="Climate barometer", + display_name_italian="Barometro climatico", + description_english="Regional overview", + description_italian="Panoramica regionale", + ), ], ), ConfigurationParameterCreate( diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/cdd.py b/arpav_ppcv/bootstrapper/coverage_configurations/cdd.py index 9f8631f6..b05d9eba 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/cdd.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/cdd.py @@ -1,24 +1,30 @@ -""" -- [x] cdd_30yr_anomaly_annual_agree_model_ensemble -- [x] cdd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17 -- [x] cdd_30yr_anomaly_annual_model_ec_earth_racmo22e -- [x] cdd_30yr_anomaly_annual_model_ec_earth_rca4 -- [x] cdd_30yr_anomaly_annual_model_hadgem2_es_racmo22e -- [x] cdd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009 - -""" from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Consecutive dry days" +_DISPLAY_NAME_ITALIAN = "Giorni secchi" +_DESCRIPTION_ENGLISH = ( + "Number of days with average temperature less than 2 °C and daily precipitation " + "greater than 1 mm" +) +_DESCRIPTION_ITALIAN = ( + "Numero di giorni con temperatura media inferiore a 2 °C e precipitazioni " + "giornaliere superiori a 1 mm" +) + def generate_configurations( conf_param_values, ) -> list[CoverageConfigurationCreate]: return [ CoverageConfigurationCreate( - name="cdd_30yr_anomaly_annual_agree_model_ensemble", + name="cdd_30yr_anomaly_seasonal_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="cdd", wms_main_layer_name="consecutive_dry_days_index_per_time_period-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/eca_cdd_an_avgagree_{time_window}_{scenario}_{year_period}_ls_VFVGTAA.nc", @@ -27,6 +33,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "cdd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -75,7 +101,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="cdd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", + name="cdd_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="cdd", wms_main_layer_name="consecutive_dry_days_index_per_time_period", thredds_url_pattern="indici5rcm/clipped/eca_cdd_an_EC-EARTH_CCLM4-8-17_{scenario}_{year_period}_{time_window}_ls_VFVGTAA.nc", @@ -84,6 +114,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "cdd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -132,7 +182,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="cdd_30yr_anomaly_annual_model_ec_earth_racmo22e", + name="cdd_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="cdd", wms_main_layer_name="consecutive_dry_days_index_per_time_period", thredds_url_pattern="indici5rcm/clipped/eca_cdd_an_EC-EARTH_RACMO22E_{scenario}_{year_period}_{time_window}_ls_VFVGTAA.nc", @@ -141,6 +195,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "cdd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -189,7 +263,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="cdd_30yr_anomaly_annual_model_ec_earth_rca4", + name="cdd_30yr_anomaly_seasonal_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="cdd", wms_main_layer_name="consecutive_dry_days_index_per_time_period", thredds_url_pattern="indici5rcm/clipped/eca_cdd_an_EC-EARTH_RCA4_{scenario}_{year_period}_{time_window}_ls_VFVGTAA.nc", @@ -198,6 +276,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "cdd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -246,7 +344,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="cdd_30yr_anomaly_annual_model_hadgem2_es_racmo22e", + name="cdd_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="cdd", wms_main_layer_name="consecutive_dry_days_index_per_time_period", thredds_url_pattern="indici5rcm/clipped/eca_cdd_an_HadGEM2-ES_RACMO22E_{scenario}_{year_period}_{time_window}_ls_VFVGTAA.nc", @@ -255,6 +357,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "cdd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -303,7 +425,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="cdd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + name="cdd_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="cdd", wms_main_layer_name="consecutive_dry_days_index_per_time_period", thredds_url_pattern="indici5rcm/clipped/eca_cdd_an_MPI-ESM-LR_REMO2009_{scenario}_{year_period}_{time_window}_ls_VFVGTAA.nc", @@ -312,6 +438,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "cdd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -364,47 +510,47 @@ def generate_configurations( def get_related_map() -> dict[str, list[str]]: return { - "cdd_30yr_anomaly_annual_agree_model_ensemble": [ + "cdd_30yr_anomaly_seasonal_agree_model_ensemble": [ "cdd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", "cdd_30yr_anomaly_annual_model_ec_earth_racmo22e", "cdd_30yr_anomaly_annual_model_ec_earth_rca4", "cdd_30yr_anomaly_annual_model_hadgem2_es_racmo22e", "cdd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", ], - "cdd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17": [ - "cdd_30yr_anomaly_annual_agree_model_ensemble", - "cdd_30yr_anomaly_annual_model_ec_earth_racmo22e", - "cdd_30yr_anomaly_annual_model_ec_earth_rca4", - "cdd_30yr_anomaly_annual_model_hadgem2_es_racmo22e", - "cdd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "cdd_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17": [ + "cdd_30yr_anomaly_seasonal_agree_model_ensemble", + "cdd_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "cdd_30yr_anomaly_seasonal_model_ec_earth_rca4", + "cdd_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + "cdd_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "cdd_30yr_anomaly_annual_model_ec_earth_racmo22e": [ - "cdd_30yr_anomaly_annual_agree_model_ensemble", - "cdd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "cdd_30yr_anomaly_annual_model_ec_earth_rca4", - "cdd_30yr_anomaly_annual_model_hadgem2_es_racmo22e", - "cdd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "cdd_30yr_anomaly_seasonal_model_ec_earth_racmo22e": [ + "cdd_30yr_anomaly_seasonal_agree_model_ensemble", + "cdd_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "cdd_30yr_anomaly_seasonal_model_ec_earth_rca4", + "cdd_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + "cdd_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "cdd_30yr_anomaly_annual_model_ec_earth_rca4": [ - "cdd_30yr_anomaly_annual_agree_model_ensemble", - "cdd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "cdd_30yr_anomaly_annual_model_ec_earth_racmo22e", - "cdd_30yr_anomaly_annual_model_hadgem2_es_racmo22e", - "cdd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "cdd_30yr_anomaly_seasonal_model_ec_earth_rca4": [ + "cdd_30yr_anomaly_seasonal_agree_model_ensemble", + "cdd_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "cdd_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "cdd_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + "cdd_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "cdd_30yr_anomaly_annual_model_hadgem2_es_racmo22e": [ - "cdd_30yr_anomaly_annual_agree_model_ensemble", - "cdd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "cdd_30yr_anomaly_annual_model_ec_earth_racmo22e", - "cdd_30yr_anomaly_annual_model_ec_earth_rca4", - "cdd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "cdd_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e": [ + "cdd_30yr_anomaly_seasonal_agree_model_ensemble", + "cdd_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "cdd_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "cdd_30yr_anomaly_seasonal_model_ec_earth_rca4", + "cdd_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "cdd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009": [ - "cdd_30yr_anomaly_annual_agree_model_ensemble", - "cdd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "cdd_30yr_anomaly_annual_model_ec_earth_racmo22e", - "cdd_30yr_anomaly_annual_model_ec_earth_rca4", - "cdd_30yr_anomaly_annual_model_hadgem2_es_racmo22e", + "cdd_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009": [ + "cdd_30yr_anomaly_seasonal_agree_model_ensemble", + "cdd_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "cdd_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "cdd_30yr_anomaly_seasonal_model_ec_earth_rca4", + "cdd_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", ], } diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/fd.py b/arpav_ppcv/bootstrapper/coverage_configurations/fd.py index 68fd183d..f2cf1beb 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/fd.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/fd.py @@ -1,28 +1,14 @@ -""" -- [x] fd_annual_absolute_model_ensemble -- [x] fd_annual_absolute_model_ensemble_upper_uncertainty -- [x] fd_annual_absolute_model_ensemble_lower_uncertainty -- [x] fd_annual_absolute_model_ec_earth_cclm4_8_17 -- [x] fd_annual_absolute_model_ec_earth_racmo22e -- [x] fd_annual_absolute_model_ec_earth_rca4 -- [x] fd_annual_absolute_model_hadgem2_es_racmo22e -- [x] fd_annual_absolute_model_mpi_esm_lr_remo2009 - -- [x] 30year anomaly - - [x] fd_30yr_anomaly_annual_agree_model_ensemble - - [x] fd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17 - - [x] fd_30yr_anomaly_annual_model_ec_earth_racmo22e - - [x] fd_30yr_anomaly_annual_model_ec_earth_rca4 - - [x] fd_30yr_anomaly_annual_model_hadgem2_es_racmo22e - - [x] fd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009 - -""" from ...schemas.base import ObservationAggregationType from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Frozen days" +_DISPLAY_NAME_ITALIAN = "Giorni di gelo" +_DESCRIPTION_ENGLISH = "Number of days with minimum temperature less than 0 °C" +_DESCRIPTION_ITALIAN = "Numero di giorni con temperatura minima inferiore a 0 °C" + def generate_configurations( conf_param_values, variables @@ -30,6 +16,10 @@ def generate_configurations( return [ CoverageConfigurationCreate( name="fd_annual_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="ensymbc/clipped/ecafd_0_avg_{scenario}_ts19762100_ls_VFVG.nc", @@ -38,6 +28,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -53,6 +63,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("FD")) is not None else None @@ -61,6 +76,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="fd_annual_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/ecafd_0_EC-EARTH_CCLM4-8-17_{scenario}_ts19762100_ls_VFVG.nc", @@ -69,6 +88,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -84,6 +123,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("FD")) is not None else None @@ -92,6 +136,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="fd_annual_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/ecafd_0_EC-EARTH_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -100,6 +148,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -115,6 +183,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("FD")) is not None else None @@ -123,6 +196,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="fd_annual_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/ecafd_0_EC-EARTH_RCA4_{scenario}_ts19762100_ls_VFVG.nc", @@ -131,6 +208,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -146,6 +243,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("FD")) is not None else None @@ -154,6 +256,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="fd_annual_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/ecafd_0_HadGEM2-ES_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -162,6 +268,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -177,6 +303,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("FD")) is not None else None @@ -185,6 +316,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="fd_annual_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/ecafd_0_MPI-ESM-LR_REMO2009_{scenario}_ts19762100_ls_VFVG.nc", @@ -193,6 +328,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -208,6 +363,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("FD")) is not None else None @@ -216,6 +376,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="fd_annual_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd_stdup", wms_main_layer_name="fd_stdup", thredds_url_pattern="ensymbc/std/clipped/ecafd_0_stdup_{scenario}_ts19762100_ls_VFVG.nc", @@ -224,6 +388,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -239,10 +428,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="fd_annual_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd_stddown", wms_main_layer_name="fd_stddown", thredds_url_pattern="ensymbc/std/clipped/ecafd_0_stddown_{scenario}_ts19762100_ls_VFVG.nc", @@ -251,6 +449,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -266,10 +489,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="fd_30yr_anomaly_annual_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd_uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/ecafdan_0_avgagree_{time_window}_{scenario}_ls_VFVG.nc", @@ -278,6 +510,26 @@ def generate_configurations( color_scale_min=-85, color_scale_max=5, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -303,10 +555,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="fd_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="indici5rcm/clipped/ecafdan_0_EC-EARTH_CCLM4-8-17_{scenario}_{time_window}_ls_VFVG.nc", @@ -315,6 +576,26 @@ def generate_configurations( color_scale_min=-85, color_scale_max=5, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -340,10 +621,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="fd_30yr_anomaly_annual_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="indici5rcm/clipped/ecafdan_0_EC-EARTH_RACMO22E_{scenario}_{time_window}_ls_VFVG.nc", @@ -352,6 +642,26 @@ def generate_configurations( color_scale_min=-85, color_scale_max=5, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -377,10 +687,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="fd_30yr_anomaly_annual_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="indici5rcm/clipped/ecafdan_0_EC-EARTH_RCA4_{scenario}_{time_window}_ls_VFVG.nc", @@ -389,6 +708,26 @@ def generate_configurations( color_scale_min=-85, color_scale_max=5, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -414,10 +753,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="fd_30yr_anomaly_annual_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="indici5rcm/clipped/ecafdan_0_HadGEM2-ES_RACMO22E_{scenario}_{time_window}_ls_VFVG.nc", @@ -426,6 +774,26 @@ def generate_configurations( color_scale_min=-85, color_scale_max=5, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -451,10 +819,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="fd_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="fd", wms_main_layer_name="fd", thredds_url_pattern="indici5rcm/clipped/ecafdan_0_MPI-ESM-LR_REMO2009_{scenario}_{time_window}_ls_VFVG.nc", @@ -463,6 +840,26 @@ def generate_configurations( color_scale_min=-85, color_scale_max=5, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "fd") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -488,6 +885,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), ] diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/pr.py b/arpav_ppcv/bootstrapper/coverage_configurations/pr.py index 2b9e8ad5..f425b3d3 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/pr.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/pr.py @@ -1,49 +1,14 @@ -""" -- [x] anomaly - - [x] pr_seasonal_anomaly_model_ensemble - - [x] pr_seasonal_anomaly_model_ensemble_upper_uncertainty - - [x] pr_seasonal_anomaly_model_ensemble_lower_uncertainty - - [x] pr_seasonal_anomaly_model_ec_earth_cclm4_8_17 - - [x] pr_seasonal_anomaly_model_ec_earth_racmo22e - - [x] pr_seasonal_anomaly_model_ec_earth_rca4 - - [x] pr_seasonal_anomaly_model_hadgem2_es_racmo22e - - [x] pr_seasonal_anomaly_model_mpi_esm_lr_remo2009 - -- [x] absolute value - - [x] seasonal - - [x] pr_seasonal_absolute_model_ensemble - - [x] pr_seasonal_absolute_model_ensemble_upper_uncertainty - - [x] pr_seasonal_absolute_model_ensemble_lower_uncertainty - - [x] pr_seasonal_absolute_model_ec_earth_cclm4_8_17 - - [x] pr_seasonal_absolute_model_ec_earth_racmo22e - - [x] pr_seasonal_absolute_model_ec_earth_rca4 - - [x] pr_seasonal_absolute_model_hadgem2_es_racmo22e - - [x] pr_seasonal_absolute_model_mpi_esm_lr_remo2009 - - - [x] annual - - [x] pr_annual_absolute_model_ensemble - - [x] pr_annual_absolute_model_ensemble_upper_uncertainty - - [x] pr_annual_absolute_model_ensemble_lower_uncertainty - - [x] pr_annual_absolute_model_ec_earth_cclm4_8_17 - - [x] pr_annual_absolute_model_ec_earth_racmo22e - - [x] pr_annual_absolute_model_ec_earth_rca4 - - [x] pr_annual_absolute_model_hadgem2_es_racmo22e - - [x] pr_annual_absolute_model_mpi_esm_lr_remo2009 - -- [x] 30year anomaly - - [x] pr_30yr_anomaly_seasonal_agree_model_ensemble - - [x] pr_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17 - - [x] pr_30yr_anomaly_seasonal_model_ec_earth_racmo22e - - [x] pr_30yr_anomaly_seasonal_model_ec_earth_rca4 - - [x] pr_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e - - [x] pr_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009 -""" from ...schemas.base import ObservationAggregationType from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Rainfall" +_DISPLAY_NAME_ITALIAN = "Precipitazione" +_DESCRIPTION_ENGLISH = "Daily precipitation near the ground" +_DESCRIPTION_ITALIAN = "Precipitazioni giornaliere in prossimità del suolo" + def generate_configurations( conf_param_values, variables @@ -51,6 +16,10 @@ def generate_configurations( return [ CoverageConfigurationCreate( name="pr_seasonal_anomaly_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="ens5ym/clipped/pr_anom_pp_ts_{scenario}_{year_period}_VFVGTAA.nc", @@ -59,6 +28,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -98,6 +87,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_anomaly_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="EC-EARTH_CCLM4-8-17ym/clipped/pr_EC-EARTH_CCLM4-8-17_{scenario}_{year_period}_anomaly_pp_percentage_VFVGTAA.nc", @@ -106,6 +99,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -145,6 +158,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_anomaly_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="EC-EARTH_RACMO22Eym/clipped/pr_EC-EARTH_RACMO22E_{scenario}_{year_period}_anomaly_pp_percentage_VFVGTAA.nc", @@ -153,6 +170,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -192,6 +229,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_anomaly_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="EC-EARTH_RCA4ym/clipped/pr_EC-EARTH_RCA4_{scenario}_{year_period}_anomaly_pp_percentage_VFVGTAA.nc", @@ -200,6 +241,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -239,6 +300,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_anomaly_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="HadGEM2-ES_RACMO22Eym/clipped/pr_HadGEM2-ES_RACMO22E_{scenario}_{year_period}_anomaly_pp_percentage_VFVGTAA.nc", @@ -247,6 +312,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -286,6 +371,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_anomaly_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="MPI-ESM-LR_REMO2009ym/clipped/pr_MPI-ESM-LR_REMO2009_{scenario}_{year_period}_anomaly_pp_percentage_VFVGTAA.nc", @@ -294,6 +383,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -333,6 +442,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_anomaly_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr_stdup", wms_main_layer_name="pr_stdup", thredds_url_pattern="ens5ym/std/clipped/pr_anom_stdup_pp_ts_{scenario}_{year_period}_VFVGTAA.nc", @@ -341,6 +454,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -380,6 +518,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_anomaly_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr_stddown", wms_main_layer_name="pr_stddown", thredds_url_pattern="ens5ym/std/clipped/pr_anom_stddown_pp_ts_{scenario}_{year_period}_VFVGTAA.nc", @@ -388,6 +530,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -427,6 +594,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="ensymbc/clipped/pr_avg_{scenario}_{year_period}_ts19762100_ls_VFVGTAA.nc", @@ -435,6 +606,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=800, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -478,6 +669,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_annual_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="ensymbc/clipped/pr_avg_{scenario}_ts19762100_ls_VFVGTAA.nc", @@ -486,6 +681,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=3200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -501,6 +716,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("PRCPTOT")) is not None else None @@ -509,6 +729,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/pr_EC-EARTH_CCLM4-8-17_{scenario}_{year_period}_ts_ls_VFVGTAA.nc", @@ -517,6 +741,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=800, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -560,6 +804,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_annual_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, wms_main_layer_name="pr", netcdf_main_dataset_name="pr", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/pr_EC-EARTH_CCLM4-8-17_{scenario}_ts_ls_VFVGTAA.nc", @@ -568,6 +816,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=800, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -583,6 +851,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("PRCPTOT")) is not None else None @@ -591,6 +864,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/pr_EC-EARTH_RACMO22E_{scenario}_{year_period}_ts_ls_VFVGTAA.nc", @@ -599,6 +876,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=800, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -642,6 +939,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_annual_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/pr_EC-EARTH_RACMO22E_{scenario}_ts_ls_VFVGTAA.nc", @@ -650,6 +951,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=3200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -665,6 +986,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("PRCPTOT")) is not None else None @@ -673,6 +999,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/pr_EC-EARTH_RCA4_{scenario}_{year_period}_ts_ls_VFVGTAA.nc", @@ -683,32 +1013,52 @@ def generate_configurations( possible_values=[ ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("scenario", "rcp26") + ("climatological_variable", "pr") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("scenario", "rcp45") + ("aggregation_period", "annual") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("scenario", "rcp85") + ("measure", "absolute") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("year_period", "DJF") + ("climatological_model", "ec_earth_rca4") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("year_period", "MAM") + ("scenario", "rcp26") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("year_period", "JJA") + ("scenario", "rcp45") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("scenario", "rcp85") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "DJF") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "MAM") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "JJA") ].id ), ConfigurationParameterPossibleValueCreate( @@ -724,6 +1074,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_annual_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/pr_EC-EARTH_RCA4_{scenario}_ts_ls_VFVGTAA.nc", @@ -732,6 +1086,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=3200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -747,6 +1121,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("PRCPTOT")) is not None else None @@ -755,6 +1134,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/pr_HadGEM2-ES_RACMO22E_{scenario}_{year_period}_ts_ls_VFVGTAA.nc", @@ -763,6 +1146,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=800, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -806,6 +1209,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_annual_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/pr_HadGEM2-ES_RACMO22E_{scenario}_ts_ls_VFVGTAA.nc", @@ -814,6 +1221,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=3200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -829,6 +1256,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("PRCPTOT")) is not None else None @@ -837,6 +1269,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/pr_MPI-ESM-LR_REMO2009_{scenario}_{year_period}_ts_ls_VFVGTAA.nc", @@ -845,6 +1281,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=800, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -888,6 +1344,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_annual_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/pr_MPI-ESM-LR_REMO2009_{scenario}_ts_ls_VFVGTAA.nc", @@ -896,6 +1356,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=3200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -911,6 +1391,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("PRCPTOT")) is not None else None @@ -919,6 +1404,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr_stdup", wms_main_layer_name="pr_stdup", thredds_url_pattern="ensymbc/std/clipped/pr_stdup_{scenario}_{year_period}_ts19762100_ls_VFVGTAA.nc", @@ -927,6 +1416,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=800, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -966,6 +1480,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_seasonal_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr_stddown", wms_main_layer_name="pr_stddown", thredds_url_pattern="ensymbc/std/clipped/pr_stddown_{scenario}_{year_period}_ts19762100_ls_VFVGTAA.nc", @@ -974,6 +1492,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=800, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -1013,6 +1556,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_annual_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr_stdup", wms_main_layer_name="pr_stdup", thredds_url_pattern="ensymbc/std/clipped/pr_stdup_{scenario}_ts19762100_ls_VFVGTAA.nc", @@ -1021,6 +1568,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=3200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -1036,10 +1608,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="pr_annual_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr_stddown", wms_main_layer_name="pr_stddown", thredds_url_pattern="ensymbc/std/clipped/pr_stddown_{scenario}_ts19762100_ls_VFVGTAA.nc", @@ -1048,6 +1629,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=3200, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -1063,10 +1669,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="pr_30yr_anomaly_seasonal_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/pr_avgagree_percentage_{time_window}_{scenario}_{year_period}_VFVGTAA.nc", @@ -1075,6 +1690,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1124,6 +1759,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="taspr5rcm/clipped/pr_EC-EARTH_CCLM4-8-17_{scenario}_seas_{time_window}_percentage_{year_period}_VFVGTAA.nc", @@ -1132,6 +1771,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1181,6 +1840,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="taspr5rcm/clipped/pr_EC-EARTH_RACMO22E_{scenario}_seas_{time_window}_percentage_{year_period}_VFVGTAA.nc", @@ -1189,6 +1852,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1238,6 +1921,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_30yr_anomaly_seasonal_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="taspr5rcm/clipped/pr_EC-EARTH_RCA4_{scenario}_seas_{time_window}_percentage_{year_period}_VFVGTAA.nc", @@ -1246,6 +1933,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1295,6 +2002,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="taspr5rcm/clipped/pr_HadGEM2-ES_RACMO22E_{scenario}_seas_{time_window}_percentage_{year_period}_VFVGTAA.nc", @@ -1303,6 +2014,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1352,6 +2083,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="pr_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="pr", wms_main_layer_name="pr", thredds_url_pattern="taspr5rcm/clipped/pr_MPI-ESM-LR_REMO2009_{scenario}_seas_{time_window}_percentage_{year_period}_VFVGTAA.nc", @@ -1360,6 +2095,26 @@ def generate_configurations( color_scale_min=-40, color_scale_max=40, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "pr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/r95ptot.py b/arpav_ppcv/bootstrapper/coverage_configurations/r95ptot.py index cb612446..dd057cfa 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/r95ptot.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/r95ptot.py @@ -1,24 +1,29 @@ -""" -- [x] r95ptot_30yr_anomaly_annual_agree_model_ensemble -- [x] r95ptot_30yr_anomaly_annual_model_ec_earth_cclm4_8_17 -- [x] r95ptot_30yr_anomaly_annual_model_ec_earth_racmo22e -- [x] r95ptot_30yr_anomaly_annual_model_ec_earth_rca4 -- [x] r95ptot_30yr_anomaly_annual_model_hadgem2_es_racmo22e -- [x] r95ptot_30yr_anomaly_annual_model_mpi_esm_lr_remo2009 - -""" from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Extreme rainfall" +_DISPLAY_NAME_ITALIAN = "Precipitazione estrema" +_DESCRIPTION_ENGLISH = ( + "Total cumulative precipitation above the 95th percentile of the reference period" +) +_DESCRIPTION_ITALIAN = ( + "Precipitazioni cumulative totali superiori al 95° percentile del periodo di " + "riferimento" +) + def generate_configurations( conf_param_values, ) -> list[CoverageConfigurationCreate]: return [ CoverageConfigurationCreate( - name="r95ptot_30yr_anomaly_annual_agree_model_ensemble", + name="r95ptot_30yr_anomaly_seasonal_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="r95ptot", wms_main_layer_name="r95ptot-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/pr_change_cumulative_check_avgagree_{time_window}_{scenario}_{year_period}_VFVGTAA.nc", @@ -27,6 +32,26 @@ def generate_configurations( color_scale_min=-160, color_scale_max=160, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "r95ptot") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -75,7 +100,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="r95ptot_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", + name="r95ptot_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="r95ptot", wms_main_layer_name="r95ptot", thredds_url_pattern="indici5rcm/clipped/pr_change_cumulative_EC-EARTH_CCLM4-8-17_{year_period}_{scenario}_{time_window}_VFVGTAA.nc", @@ -84,6 +113,26 @@ def generate_configurations( color_scale_min=-160, color_scale_max=160, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "r95ptot") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -132,7 +181,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="r95ptot_30yr_anomaly_annual_model_ec_earth_racmo22e", + name="r95ptot_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="r95ptot", wms_main_layer_name="r95ptot", thredds_url_pattern="indici5rcm/clipped/pr_change_cumulative_EC-EARTH_RACMO22E_{year_period}_{scenario}_{time_window}_VFVGTAA.nc", @@ -141,6 +194,26 @@ def generate_configurations( color_scale_min=-160, color_scale_max=160, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "r95ptot") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -189,7 +262,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="r95ptot_30yr_anomaly_annual_model_ec_earth_rca4", + name="r95ptot_30yr_anomaly_seasonal_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="r95ptot", wms_main_layer_name="r95ptot", thredds_url_pattern="indici5rcm/clipped/pr_change_cumulative_EC-EARTH_RCA4_{year_period}_{scenario}_{time_window}_VFVGTAA.nc", @@ -198,6 +275,26 @@ def generate_configurations( color_scale_min=-160, color_scale_max=160, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "r95ptot") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -246,7 +343,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="r95ptot_30yr_anomaly_annual_model_hadgem2_es_racmo22e", + name="r95ptot_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="r95ptot", wms_main_layer_name="r95ptot", thredds_url_pattern="indici5rcm/clipped/pr_change_cumulative_HadGEM2-ES_RACMO22E_{year_period}_{scenario}_{time_window}_VFVGTAA.nc", @@ -255,6 +356,26 @@ def generate_configurations( color_scale_min=-160, color_scale_max=160, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "r95ptot") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -303,7 +424,11 @@ def generate_configurations( ], ), CoverageConfigurationCreate( - name="r95ptot_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + name="r95ptot_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="r95ptot", wms_main_layer_name="r95ptot", thredds_url_pattern="indici5rcm/clipped/pr_change_cumulative_MPI-ESM-LR_REMO2009_{year_period}_{scenario}_{time_window}_VFVGTAA.nc", @@ -312,6 +437,26 @@ def generate_configurations( color_scale_min=-160, color_scale_max=160, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "r95ptot") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -364,47 +509,47 @@ def generate_configurations( def get_related_map() -> dict[str, list[str]]: return { - "r95ptot_30yr_anomaly_annual_agree_model_ensemble": [ - "r95ptot_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "r95ptot_30yr_anomaly_annual_model_ec_earth_racmo22e", - "r95ptot_30yr_anomaly_annual_model_ec_earth_rca4", - "r95ptot_30yr_anomaly_annual_model_hadgem2_es_racmo22e", - "r95ptot_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "r95ptot_30yr_anomaly_seasonal_agree_model_ensemble": [ + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_rca4", + "r95ptot_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "r95ptot_30yr_anomaly_annual_model_ec_earth_cclm4_8_17": [ - "r95ptot_30yr_anomaly_annual_agree_model_ensemble", - "r95ptot_30yr_anomaly_annual_model_ec_earth_racmo22e", - "r95ptot_30yr_anomaly_annual_model_ec_earth_rca4", - "r95ptot_30yr_anomaly_annual_model_hadgem2_es_racmo22e", - "r95ptot_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17": [ + "r95ptot_30yr_anomaly_seasonal_agree_model_ensemble", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_rca4", + "r95ptot_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "r95ptot_30yr_anomaly_annual_model_ec_earth_racmo22e": [ - "r95ptot_30yr_anomaly_annual_agree_model_ensemble", - "r95ptot_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "r95ptot_30yr_anomaly_annual_model_ec_earth_rca4", - "r95ptot_30yr_anomaly_annual_model_hadgem2_es_racmo22e", - "r95ptot_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_racmo22e": [ + "r95ptot_30yr_anomaly_seasonal_agree_model_ensemble", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_rca4", + "r95ptot_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "r95ptot_30yr_anomaly_annual_model_ec_earth_rca4": [ - "r95ptot_30yr_anomaly_annual_agree_model_ensemble", - "r95ptot_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "r95ptot_30yr_anomaly_annual_model_ec_earth_racmo22e", - "r95ptot_30yr_anomaly_annual_model_hadgem2_es_racmo22e", - "r95ptot_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_rca4": [ + "r95ptot_30yr_anomaly_seasonal_agree_model_ensemble", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "r95ptot_30yr_anomaly_annual_model_hadgem2_es_racmo22e": [ - "r95ptot_30yr_anomaly_annual_agree_model_ensemble", - "r95ptot_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "r95ptot_30yr_anomaly_annual_model_ec_earth_racmo22e", - "r95ptot_30yr_anomaly_annual_model_ec_earth_rca4", - "r95ptot_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + "r95ptot_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e": [ + "r95ptot_30yr_anomaly_seasonal_agree_model_ensemble", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_rca4", + "r95ptot_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", ], - "r95ptot_30yr_anomaly_annual_model_mpi_esm_lr_remo2009": [ - "r95ptot_30yr_anomaly_annual_agree_model_ensemble", - "r95ptot_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", - "r95ptot_30yr_anomaly_annual_model_ec_earth_racmo22e", - "r95ptot_30yr_anomaly_annual_model_ec_earth_rca4", - "r95ptot_30yr_anomaly_annual_model_hadgem2_es_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009": [ + "r95ptot_30yr_anomaly_seasonal_agree_model_ensemble", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + "r95ptot_30yr_anomaly_seasonal_model_ec_earth_rca4", + "r95ptot_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", ], } diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/snwdays.py b/arpav_ppcv/bootstrapper/coverage_configurations/snwdays.py index 28e96dc8..84ae1932 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/snwdays.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/snwdays.py @@ -1,26 +1,18 @@ -""" -- [x] snwdays_annual_absolute_model_ensemble -- [x] snwdays_annual_absolute_model_ensemble_upper_uncertainty -- [x] snwdays_annual_absolute_model_ensemble_lower_uncertainty -- [x] snwdays_annual_absolute_model_ec_earth_cclm4_8_17 -- [x] snwdays_annual_absolute_model_ec_earth_racmo22e -- [x] snwdays_annual_absolute_model_ec_earth_rca4 -- [x] snwdays_annual_absolute_model_hadgem2_es_racmo22e -- [x] snwdays_annual_absolute_model_mpi_esm_lr_remo2009 - -- [x] 30year anomaly - - [x] snwdays_30yr_anomaly_annual_agree_model_ensemble - - [x] snwdays_30yr_anomaly_annual_model_ec_earth_cclm4_8_17 - - [x] snwdays_30yr_anomaly_annual_model_ec_earth_racmo22e - - [x] snwdays_30yr_anomaly_annual_model_ec_earth_rca4 - - [x] snwdays_30yr_anomaly_annual_model_hadgem2_es_racmo22e - - [x] snwdays_30yr_anomaly_annual_model_mpi_esm_lr_remo2009 -""" from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Days with new snow" +_DISPLAY_NAME_ITALIAN = "Giorni di gelo" +_DESCRIPTION_ENGLISH = ( + "Maximum number of consecutive dry days (daily precipitation less than 1 mm)" +) +_DESCRIPTION_ITALIAN = ( + "Numero massimo di giorni asciutti consecutivi (precipitazioni giornaliere " + "inferiori a 1 mm)" +) + def generate_configurations( conf_param_values, @@ -28,6 +20,10 @@ def generate_configurations( return [ CoverageConfigurationCreate( name="snwdays_annual_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="ensymbc/clipped/snwdays_1mm_2oc_avg_ts19762100_{scenario}_ls_VFVG.nc", @@ -36,6 +32,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -51,10 +67,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_annual_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/snwdays_1mm_2oc_EC-EARTH_CCLM4-8-17_{scenario}_ts19762100_ls_VFVG.nc", @@ -63,6 +88,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -78,10 +123,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_annual_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/snwdays_1mm_2oc_EC-EARTH_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -90,6 +144,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -105,10 +179,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_annual_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/snwdays_1mm_2oc_EC-EARTH_RCA4_{scenario}_ts19762100_ls_VFVG.nc", @@ -117,6 +200,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -132,10 +235,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_annual_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/snwdays_1mm_2oc_HadGEM2-ES_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -144,6 +256,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -159,10 +291,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_annual_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/snwdays_1mm_2oc_MPI-ESM-LR_REMO2009_{scenario}_ts19762100_ls_VFVG.nc", @@ -171,6 +312,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -186,10 +347,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_annual_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays_stdup", wms_main_layer_name="snwdays_stdup", thredds_url_pattern="ensymbc/std/clipped/snwdays_1mm_2oc_stdup_ts19762100_{scenario}_ls_VFVG.nc", @@ -198,6 +368,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -213,10 +408,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_annual_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays_stddown", wms_main_layer_name="snwdays_stddown", thredds_url_pattern="ensymbc/std/clipped/snwdays_1mm_2oc_stddown_ts19762100_{scenario}_ls_VFVG.nc", @@ -225,6 +429,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -240,11 +469,20 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), # --- CoverageConfigurationCreate( name="snwdays_30yr_anomaly_annual_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/snwdays_an_1mm_2oc_avgagree_{time_window}_{scenario}_ls_VFVG.nc", @@ -253,6 +491,26 @@ def generate_configurations( color_scale_min=-50, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -278,10 +536,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="indici5rcm/clipped/snwdays_an_1mm_2oc_EC-EARTH_CCLM4-8-17_{scenario}_{time_window}_ls_VFVG.nc", @@ -290,6 +557,26 @@ def generate_configurations( color_scale_min=-50, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -315,10 +602,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_30yr_anomaly_annual_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="indici5rcm/clipped/snwdays_an_1mm_2oc_EC-EARTH_RACMO22E_{scenario}_{time_window}_ls_VFVG.nc", @@ -327,6 +623,26 @@ def generate_configurations( color_scale_min=-50, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -352,10 +668,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_30yr_anomaly_annual_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="indici5rcm/clipped/snwdays_an_1mm_2oc_EC-EARTH_RCA4_{scenario}_{time_window}_ls_VFVG.nc", @@ -364,6 +689,26 @@ def generate_configurations( color_scale_min=-50, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -389,10 +734,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_30yr_anomaly_annual_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="indici5rcm/clipped/snwdays_an_1mm_2oc_HadGEM2-ES_RACMO22E_{scenario}_{time_window}_ls_VFVG.nc", @@ -401,6 +755,26 @@ def generate_configurations( color_scale_min=-50, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -426,10 +800,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="snwdays_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="snwdays", wms_main_layer_name="snwdays", thredds_url_pattern="indici5rcm/clipped/snwdays_an_1mm_2oc_MPI-ESM-LR_REMO2009_{scenario}_{time_window}_ls_VFVG.nc", @@ -438,6 +821,26 @@ def generate_configurations( color_scale_min=-50, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "snwdays") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -463,6 +866,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), ] diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/su30.py b/arpav_ppcv/bootstrapper/coverage_configurations/su30.py index d518b9a3..ff3cc052 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/su30.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/su30.py @@ -1,27 +1,14 @@ -""" -- [x] su30_annual_absolute_model_ensemble -- [x] su30_annual_absolute_model_ensemble_upper_uncertainty -- [x] su30_annual_absolute_model_ensemble_lower_uncertainty -- [x] su30_annual_absolute_model_ec_earth_cclm4_8_17 -- [x] su30_annual_absolute_model_ec_earth_racmo22e -- [x] su30_annual_absolute_model_ec_earth_rca4 -- [x] su30_annual_absolute_model_hadgem2_es_racmo22e -- [x] su30_annual_absolute_model_mpi_esm_lr_remo2009 - -- [x] 30year anomaly - - [x] su30_30yr_anomaly_annual_agree_model_ensemble - - [x] su30_30yr_anomaly_annual_model_ec_earth_cclm4_8_17 - - [x] su30_30yr_anomaly_annual_model_ec_earth_racmo22e - - [x] su30_30yr_anomaly_annual_model_ec_earth_rca4 - - [x] su30_30yr_anomaly_annual_model_hadgem2_es_racmo22e - - [x] su30_30yr_anomaly_annual_model_mpi_esm_lr_remo2009 -""" from ...schemas.base import ObservationAggregationType from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Hot days" +_DISPLAY_NAME_ITALIAN = "Giorni caldi" +_DESCRIPTION_ENGLISH = "Number of days with maximum temperature greater than 30 °C" +_DESCRIPTION_ITALIAN = "Numero di giorni con temperatura massima superiore a 30 °C" + def generate_configurations( conf_param_values, variables @@ -29,6 +16,10 @@ def generate_configurations( return [ CoverageConfigurationCreate( name="su30_annual_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="ensymbc/clipped/ecasu_30_avg_{scenario}_ts19762100_ls_VFVG.nc", @@ -37,6 +28,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -52,6 +63,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("SU30")) is not None else None @@ -60,6 +76,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="su30_annual_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/ecasu_30_EC-EARTH_CCLM4-8-17_{scenario}_ts19762100_ls_VFVG.nc", @@ -68,6 +88,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -83,6 +123,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("SU30")) is not None else None @@ -91,6 +136,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="su30_annual_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/ecasu_30_EC-EARTH_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -99,6 +148,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -114,6 +183,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("SU30")) is not None else None @@ -122,6 +196,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="su30_annual_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/ecasu_30_EC-EARTH_RCA4_{scenario}_ts19762100_ls_VFVG.nc", @@ -130,6 +208,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -145,6 +243,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("SU30")) is not None else None @@ -153,6 +256,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="su30_annual_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/ecasu_30_HadGEM2-ES_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -161,6 +268,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -176,6 +303,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("SU30")) is not None else None @@ -184,6 +316,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="su30_annual_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/ecasu_30_MPI-ESM-LR_REMO2009_{scenario}_ts19762100_ls_VFVG.nc", @@ -192,6 +328,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -207,6 +363,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("SU30")) is not None else None @@ -215,6 +376,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="su30_annual_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30_stdup", wms_main_layer_name="su30_stdup", thredds_url_pattern="ensymbc/std/clipped/ecasu_30_stdup_{scenario}_ts19762100_ls_VFVG.nc", @@ -223,6 +388,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -238,10 +428,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="su30_annual_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30_stddown", wms_main_layer_name="su30_stddown", thredds_url_pattern="ensymbc/std/clipped/ecasu_30_stddown_{scenario}_ts19762100_ls_VFVG.nc", @@ -250,6 +449,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -265,10 +489,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="su30_30yr_anomaly_annual_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/ecasuan_30_avgagree_{time_window}_{scenario}_ls_VFVG.nc", @@ -277,6 +510,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -302,10 +555,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="su30_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="indici5rcm/clipped/ecasuan_30_EC-EARTH_CCLM4-8-17_{scenario}_{time_window}_ls_VFVG.nc", @@ -314,6 +576,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -339,10 +621,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="su30_30yr_anomaly_annual_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="indici5rcm/clipped/ecasuan_30_EC-EARTH_RACMO22E_{scenario}_{time_window}_ls_VFVG.nc", @@ -351,6 +642,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -376,10 +687,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="su30_30yr_anomaly_annual_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="indici5rcm/clipped/ecasuan_30_EC-EARTH_RCA4_{scenario}_{time_window}_ls_VFVG.nc", @@ -388,6 +708,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -413,10 +753,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="su30_30yr_anomaly_annual_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="indici5rcm/clipped/ecasuan_30_HadGEM2-ES_RACMO22E_{scenario}_{time_window}_ls_VFVG.nc", @@ -425,6 +774,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -450,10 +819,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="su30_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="su30", wms_main_layer_name="su30", thredds_url_pattern="indici5rcm/clipped/ecasuan_30_MPI-ESM-LR_REMO2009_{scenario}_{time_window}_ls_VFVG.nc", @@ -462,6 +840,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "su30") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -487,6 +885,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), ] diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/tas.py b/arpav_ppcv/bootstrapper/coverage_configurations/tas.py index 4955f351..500d1618 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/tas.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/tas.py @@ -1,55 +1,14 @@ -""" -- [x] anomaly - - [x] tas_seasonal_anomaly_model_ensemble - - [x] tas_seasonal_anomaly_model_ec_earth_cclm4_8_17 - - [x] tas_seasonal_anomaly_model_ec_earth_racmo22e - - [x] tas_seasonal_anomaly_model_ec_earth_rca4 - - [x] tas_seasonal_anomaly_model_hadgem2_es_racmo22e - - [x] tas_seasonal_anomaly_model_mpi_esm_lr_remo2009 - - [x] tas_seasonal_anomaly_model_ensemble_upper_uncertainty - - [x] tas_seasonal_anomaly_model_ensemble_lower_uncertainty - -- [x] absolute value - - - [x] seasonal - - [x] tas_seasonal_absolute_model_ensemble - - [x] tas_seasonal_absolute_model_ensemble_upper_uncertainty - - [x] tas_seasonal_absolute_model_ensemble_lower_uncertainty - - [x] tas_seasonal_absolute_model_ec_earth_cclm4_8_17 - - [x] tas_seasonal_absolute_model_ec_earth_racmo22e - - [x] tas_seasonal_absolute_model_ec_earth_rca4 - - [x] tas_seasonal_absolute_model_hadgem2_es_racmo22e - - [x] tas_seasonal_absolute_model_mpi_esm_lr_remo2009 - - - [x] annual - - [x] tas_annual_absolute_model_ensemble - - [x] tas_annual_absolute_model_ensemble_upper_uncertainty - - [x] tas_annual_absolute_model_ensemble_lower_uncertainty - - [x] tas_annual_absolute_model_ec_earth_cclm4_8_17 - - [x] tas_annual_absolute_model_ec_earth_racmo22e - - [x] tas_annual_absolute_model_ec_earth_rca4 - - [x] tas_annual_absolute_model_hadgem2_es_racmo22e - - [x] tas_annual_absolute_model_mpi_esm_lr_remo2009 - -- [x] 30year anomaly - - [x] tas_30yr_anomaly_seasonal_agree_model_ensemble - - [x] tas_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17 - - [x] tas_30yr_anomaly_seasonal_model_ec_earth_racmo22e - - [x] tas_30yr_anomaly_seasonal_model_ec_earth_rca4 - - [x] tas_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e - - [x] tas_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009 - -- [x] barometro climatico - - [x] tas_barometro_climatico - - [x] tas_barometro_climatico_lower_uncertainty - - [x] tas_barometro_climatico_upper_uncertainty -""" from ...schemas.base import ObservationAggregationType from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Mean temperature" +_DISPLAY_NAME_ITALIAN = "Temperatura media" +_DESCRIPTION_ENGLISH = "Average daily air temperature near the ground" +_DESCRIPTION_ITALIAN = "Temperatura media giornaliera dell'aria vicino al suolo" + def generate_configurations( conf_param_values, variables @@ -57,8 +16,10 @@ def generate_configurations( return [ CoverageConfigurationCreate( name="tas_seasonal_anomaly_model_ensemble", - display_name_english="TAS seasonal anomaly model ensemble", - display_name_italian="TAS anomalie stagionali media ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="ens5ym/clipped/tas_anom_pp_ts_{scenario}_{year_period}_VFVGTAA.nc", @@ -67,6 +28,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -106,8 +87,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_anomaly_model_ec_earth_cclm4_8_17", - display_name_english="TAS seasonal anomaly EC-EARTH_CCLM4-8-17", - display_name_italian="TAS anomalie stagionali EC-EARTH_CCLM4-8-17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_CCLM4-8-17ym/clipped/tas_EC-EARTH_CCLM4-8-17_{scenario}_{year_period}_anomaly_pp_VFVGTAA.nc", @@ -116,6 +99,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -155,8 +158,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_anomaly_model_ec_earth_racmo22e", - display_name_english="TAS seasonal anomaly EC-EARTH_RACM022E", - display_name_italian="TAS anomalie stagionali EC-EARTH_RACM022E", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_RACMO22Eym/clipped/tas_EC-EARTH_RACMO22E_{scenario}_{year_period}_anomaly_pp_VFVGTAA.nc", @@ -165,6 +170,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -204,8 +229,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_anomaly_model_ec_earth_rca4", - display_name_english="TAS seasonal anomaly EC-EARTH_RCA4", - display_name_italian="TAS anomalie stagionali EC-EARTH_RCA4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_RCA4ym/clipped/tas_EC-EARTH_RCA4_{scenario}_{year_period}_anomaly_pp_VFVGTAA.nc", @@ -214,6 +241,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -253,8 +300,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_anomaly_model_hadgem2_es_racmo22e", - display_name_english="TAS seasonal anomaly HadGEM2-ES_RACM022E", - display_name_italian="TAS anomalie stagionali HadGEM2-ES_RACM022E", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="HadGEM2-ES_RACMO22Eym/clipped/tas_HadGEM2-ES_RACMO22E_{scenario}_{year_period}_anomaly_pp_VFVGTAA.nc", @@ -263,6 +312,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -302,8 +371,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_anomaly_model_mpi_esm_lr_remo2009", - display_name_english="TAS seasonal anomaly MPI-ESM-LR_REMO2009", - display_name_italian="TAS anomalie stagionali MPI-ESM-LR_REMO2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="MPI-ESM-LR_REMO2009ym/clipped/tas_MPI-ESM-LR_REMO2009_{scenario}_{year_period}_anomaly_pp_VFVGTAA.nc", @@ -312,6 +383,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -351,8 +442,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_anomaly_model_ensemble_upper_uncertainty", - display_name_english="TAS seasonal anomaly upper uncertainty bounds", - display_name_italian="TAS anomalie stagionali limiti superiori di incertezza", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas_stdup", wms_main_layer_name="tas_stdup", thredds_url_pattern="ens5ym/std/clipped/tas_anom_stdup_pp_ts_{scenario}_{year_period}_VFVGTAA.nc", @@ -361,6 +454,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -400,8 +518,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_anomaly_model_ensemble_lower_uncertainty", - display_name_english="TAS seasonal anomaly lower uncertainty bounds", - display_name_italian="TAS anomalie stagionali limiti inferiori di incertezza", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas_stddown", wms_main_layer_name="tas_stddown", thredds_url_pattern="ens5ym/std/clipped/tas_anom_stddown_pp_ts_{scenario}_{year_period}_VFVGTAA.nc", @@ -410,6 +530,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=0, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -449,8 +594,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_absolute_model_ensemble", - display_name_english="TAS seasonal absolute model ensemble", - display_name_italian="TAS valore assoluto di stagione media ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="ensymbc/clipped/tas_avg_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -459,6 +606,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -502,8 +669,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_annual_absolute_model_ensemble", - display_name_english="TAS annual absolute model ensemble", - display_name_italian="TAS valore assoluto annuale media ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="ensymbc/clipped/tas_avg_{scenario}_ts19762100_ls_VFVG.nc", @@ -512,6 +681,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -527,6 +716,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TDd")) is not None else None @@ -535,8 +729,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_absolute_model_ec_earth_cclm4_8_17", - display_name_english="TAS seasonal absolute EC-EARTH_CCLM4-8-17", - display_name_italian="TAS valore assoluto di stagione EC-EARTH_CCLM4-8-17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/tas_EC-EARTH_CCLM4-8-17_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -545,6 +741,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -588,6 +804,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_annual_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/tas_EC-EARTH_CCLM4-8-17_{scenario}_ts19762100_ls_VFVG.nc", @@ -596,6 +816,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -611,6 +851,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TDd")) is not None else None @@ -619,8 +864,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_absolute_model_ec_earth_racmo22e", - display_name_english="TAS seasonal absolute EC-EARTH_RACMO22E", - display_name_italian="TAS valore assoluto di stagione EC-EARTH_RACMO22E", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/tas_EC-EARTH_RACMO22E_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -629,6 +876,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -672,6 +939,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_annual_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/tas_EC-EARTH_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -680,6 +951,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -695,6 +986,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TDd")) is not None else None @@ -703,6 +999,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/tas_EC-EARTH_RCA4_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -713,27 +1013,47 @@ def generate_configurations( possible_values=[ ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("scenario", "rcp26") + ("climatological_variable", "tas") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("scenario", "rcp45") + ("aggregation_period", "annual") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("scenario", "rcp85") + ("measure", "absolute") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("year_period", "DJF") + ("climatological_model", "ec_earth_rca4") ].id ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ - ("year_period", "MAM") + ("scenario", "rcp26") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("scenario", "rcp45") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("scenario", "rcp85") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "DJF") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "MAM") ].id ), ConfigurationParameterPossibleValueCreate( @@ -754,6 +1074,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_annual_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/tas_EC-EARTH_RCA4_{scenario}_ts19762100_ls_VFVG.nc", @@ -762,6 +1086,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -777,6 +1121,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TDd")) is not None else None @@ -785,6 +1134,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/tas_HadGEM2-ES_RACMO22E_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -793,6 +1146,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -836,6 +1209,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_annual_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/tas_HadGEM2-ES_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -844,6 +1221,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -859,6 +1256,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TDd")) is not None else None @@ -867,6 +1269,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/tas_MPI-ESM-LR_REMO2009_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -875,6 +1281,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -918,6 +1344,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_annual_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/tas_MPI-ESM-LR_REMO2009_{scenario}_ts19762100_ls_VFVG.nc", @@ -926,6 +1356,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -941,6 +1391,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TDd")) is not None else None @@ -949,6 +1404,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas_stdup", wms_main_layer_name="tas_stdup", thredds_url_pattern="ensymbc/std/clipped/tas_stdup_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -957,6 +1416,31 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -996,6 +1480,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_seasonal_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas_stddown", wms_main_layer_name="tas_stddown", thredds_url_pattern="ensymbc/std/clipped/tas_stddown_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -1004,6 +1492,31 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -1043,6 +1556,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_annual_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas_stdup", wms_main_layer_name="tas_stdup", thredds_url_pattern="ensymbc/std/clipped/tas_stdup_{scenario}_ts19762100_ls_VFVG.nc", @@ -1051,6 +1568,31 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -1066,10 +1608,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tas_annual_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas_stddown", wms_main_layer_name="tas_stddown", thredds_url_pattern="ensymbc/std/clipped/tas_stddown_{scenario}_ts19762100_ls_VFVG.nc", @@ -1078,6 +1629,31 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -1093,10 +1669,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tas_30yr_anomaly_seasonal_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/tas_avgagree_anom_{time_window}_{scenario}_{year_period}_VFVGTAA.nc", @@ -1105,6 +1690,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1154,6 +1759,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="taspr5rcm/clipped/tas_EC-EARTH_CCLM4-8-17_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -1162,6 +1771,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1211,6 +1840,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="taspr5rcm/clipped/tas_EC-EARTH_RACMO22E_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -1219,6 +1852,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1268,6 +1921,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_30yr_anomaly_seasonal_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="taspr5rcm/clipped/tas_EC-EARTH_RCA4_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -1276,6 +1933,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1325,6 +2002,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="taspr5rcm/clipped/tas_HadGEM2-ES_RACMO22E_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -1333,6 +2014,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1382,6 +2083,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="taspr5rcm/clipped/tas_MPI-ESM-LR_REMO2009_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -1390,6 +2095,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -1439,6 +2164,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_barometro_climatico", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas", wms_main_layer_name="tas", thredds_url_pattern="ensymbc/std/clipped/fldmean/tas_avg_{scenario}_ts19762100_ls_VFVG_fldmean.nc", @@ -1447,6 +2176,16 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "barometro_climatico") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -1466,6 +2205,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_barometro_climatico_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas_stddown", wms_main_layer_name="tas_stddown", thredds_url_pattern="ensymbc/std/clipped/fldmean/tas_stddown_{scenario}_ts19762100_ls_VFVG_fldmean.nc", @@ -1474,6 +2217,21 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "barometro_climatico") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -1493,6 +2251,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tas_barometro_climatico_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tas_stdup", wms_main_layer_name="tas_stdup", thredds_url_pattern="ensymbc/std/clipped/fldmean/tas_stdup_{scenario}_ts19762100_ls_VFVG_fldmean.nc", @@ -1501,6 +2263,21 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tas") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "barometro_climatico") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/tasmax.py b/arpav_ppcv/bootstrapper/coverage_configurations/tasmax.py index 25323942..e7387230 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/tasmax.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/tasmax.py @@ -1,38 +1,14 @@ -""" -- [x] seasonal - - [x] tasmax_seasonal_absolute_model_ensemble - - [x] tasmax_seasonal_absolute_model_ensemble_upper_uncertainty - - [x] tasmax_seasonal_absolute_model_ensemble_lower_uncertainty - - [x] tasmax_seasonal_absolute_model_ec_earth_cclm4_8_17 - - [x] tasmax_seasonal_absolute_model_ec_earth_racmo22e - - [x] tasmax_seasonal_absolute_model_ec_earth_rca4 - - [x] tasmax_seasonal_absolute_model_hadgem2_es_racmo22e - - [x] tasmax_seasonal_absolute_model_mpi_esm_lr_remo2009 - -- [x] annual - - [x] tasmax_annual_absolute_model_ensemble - - [x] tasmax_annual_absolute_model_ensemble_upper_uncertainty - - [x] tasmax_annual_absolute_model_ensemble_lower_uncertainty - - [x] tasmax_annual_absolute_model_ec_earth_cclm4_8_17 - - [x] tasmax_annual_absolute_model_ec_earth_racmo22e - - [x] tasmax_annual_absolute_model_ec_earth_rca4 - - [x] tasmax_annual_absolute_model_hadgem2_es_racmo22e - - [x] tasmax_annual_absolute_model_mpi_esm_lr_remo2009 - -- [x] 30year anomaly - - [x] tasmax_30yr_anomaly_seasonal_agree_model_ensemble - - [x] tasmax_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17 - - [x] tasmax_30yr_anomaly_seasonal_model_ec_earth_racmo22e - - [x] tasmax_30yr_anomaly_seasonal_model_ec_earth_rca4 - - [x] tasmax_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e - - [x] tasmax_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009 -""" from ...schemas.base import ObservationAggregationType from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Maximum temperature" +_DISPLAY_NAME_ITALIAN = "Temperatura massima" +_DESCRIPTION_ENGLISH = "Maximum daily air temperature near the ground" +_DESCRIPTION_ITALIAN = "Temperatura massima giornaliera dell'aria vicino al suolo" + def generate_configurations( conf_param_values, variables @@ -40,6 +16,10 @@ def generate_configurations( return [ CoverageConfigurationCreate( name="tasmax_seasonal_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="ensymbc/clipped/tasmax_avg_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -48,6 +28,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -91,6 +91,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_annual_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="ensymbc/clipped/tasmax_avg_{scenario}_ts19762100_ls_VFVG.nc", @@ -99,6 +103,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -114,6 +138,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TXd")) is not None else None @@ -122,6 +151,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_seasonal_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/tasmax_EC-EARTH_CCLM4-8-17_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -130,6 +163,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -173,6 +226,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_annual_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/tasmax_EC-EARTH_CCLM4-8-17_{scenario}_ts19762100_ls_VFVG.nc", @@ -181,6 +238,26 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -196,6 +273,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TXd")) is not None else None @@ -204,6 +286,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_seasonal_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/tasmax_EC-EARTH_RACMO22E_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -212,6 +298,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -255,6 +361,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_annual_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/tasmax_EC-EARTH_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -263,6 +373,26 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -278,6 +408,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TXd")) is not None else None @@ -286,6 +421,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_seasonal_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/tasmax_EC-EARTH_RCA4_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -294,6 +433,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -337,6 +496,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_annual_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/tasmax_EC-EARTH_RCA4_{scenario}_ts19762100_ls_VFVG.nc", @@ -345,6 +508,26 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -360,6 +543,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TXd")) is not None else None @@ -368,6 +556,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_seasonal_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/tasmax_HadGEM2-ES_RACMO22E_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -376,6 +568,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -419,6 +631,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_annual_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/tasmax_HadGEM2-ES_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -427,6 +643,26 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -442,6 +678,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TXd")) is not None else None @@ -450,6 +691,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_seasonal_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/tasmax_MPI-ESM-LR_REMO2009_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -458,6 +703,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -501,6 +766,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_annual_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/tasmax_MPI-ESM-LR_REMO2009_{scenario}_ts19762100_ls_VFVG.nc", @@ -509,6 +778,26 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -524,6 +813,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TXd")) is not None else None @@ -532,6 +826,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_seasonal_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax_stdup", wms_main_layer_name="tasmax_stdup", thredds_url_pattern="ensymbc/std/clipped/tasmax_stdup_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -540,6 +838,31 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -579,6 +902,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_seasonal_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax_stddown", wms_main_layer_name="tasmax_stddown", thredds_url_pattern="ensymbc/std/clipped/tasmax_stddown_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -587,6 +914,31 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -626,6 +978,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_annual_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax_stdup", wms_main_layer_name="tasmax_stdup", thredds_url_pattern="ensymbc/std/clipped/tasmax_stdup_{scenario}_ts19762100_ls_VFVG.nc", @@ -634,6 +990,31 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -649,10 +1030,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tasmax_annual_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax_stddown", wms_main_layer_name="tasmax_stddown", thredds_url_pattern="ensymbc/std/clipped/tasmax_stddown_{scenario}_ts19762100_ls_VFVG.nc", @@ -661,6 +1051,31 @@ def generate_configurations( color_scale_min=7, color_scale_max=37, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -676,10 +1091,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tasmax_30yr_anomaly_seasonal_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/tasmax_avgagree_anom_{time_window}_{scenario}_{year_period}_VFVGTAA.nc", @@ -688,6 +1112,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -737,6 +1181,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="taspr5rcm/clipped/tasmax_EC-EARTH_CCLM4-8-17_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -745,6 +1193,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -794,6 +1262,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="taspr5rcm/clipped/tasmax_EC-EARTH_RACMO22E_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -802,6 +1274,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -851,6 +1343,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_30yr_anomaly_seasonal_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="taspr5rcm/clipped/tasmax_EC-EARTH_RCA4_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -859,6 +1355,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -908,6 +1424,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="taspr5rcm/clipped/tasmax_HadGEM2-ES_RACMO22E_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -916,6 +1436,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -965,6 +1505,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmax_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmax", wms_main_layer_name="tasmax", thredds_url_pattern="taspr5rcm/clipped/tasmax_MPI-ESM-LR_REMO2009_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -973,6 +1517,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmax") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/tasmin.py b/arpav_ppcv/bootstrapper/coverage_configurations/tasmin.py index 86cd7101..405c1834 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/tasmin.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/tasmin.py @@ -1,38 +1,14 @@ -""" -- [x] seasonal - - [x] tasmin_seasonal_absolute_model_ensemble - - [x] tasmin_seasonal_absolute_model_ensemble_upper_uncertainty - - [x] tasmin_seasonal_absolute_model_ensemble_lower_uncertainty - - [x] tasmin_seasonal_absolute_model_ec_earth_cclm4_8_17 - - [x] tasmin_seasonal_absolute_model_ec_earth_racmo22e - - [x] tasmin_seasonal_absolute_model_ec_earth_rca4 - - [x] tasmin_seasonal_absolute_model_hadgem2_es_racmo22e - - [x] tasmin_seasonal_absolute_model_mpi_esm_lr_remo2009 - -- [x] annual - - [x] tasmin_annual_absolute_model_ensemble - - [x] tasmin_annual_absolute_model_ensemble_upper_uncertainty - - [x] tasmin_annual_absolute_model_ensemble_lower_uncertainty - - [x] tasmin_annual_absolute_model_ec_earth_cclm4_8_17 - - [x] tasmin_annual_absolute_model_ec_earth_racmo22e - - [x] tasmin_annual_absolute_model_ec_earth_rca4 - - [x] tasmin_annual_absolute_model_hadgem2_es_racmo22e - - [x] tasmin_annual_absolute_model_mpi_esm_lr_remo2009 - -- [x] 30year anomaly - - [x] tasmin_30yr_anomaly_seasonal_agree_model_ensemble - - [x] tasmin_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17 - - [x] tasmin_30yr_anomaly_seasonal_model_ec_earth_racmo22e - - [x] tasmin_30yr_anomaly_seasonal_model_ec_earth_rca4 - - [x] tasmin_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e - - [x] tasmin_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009 -""" from ...schemas.base import ObservationAggregationType from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Minimum temperature" +_DISPLAY_NAME_ITALIAN = "Temperatura minima" +_DESCRIPTION_ENGLISH = "Minimum daily air temperature near the ground" +_DESCRIPTION_ITALIAN = "Temperatura minima giornaliera dell'aria vicino al suolo" + def generate_configurations( conf_param_values, variables @@ -40,6 +16,10 @@ def generate_configurations( return [ CoverageConfigurationCreate( name="tasmin_seasonal_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="ensymbc/clipped/tasmin_avg_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -48,6 +28,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -91,6 +91,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_annual_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="ensymbc/clipped/tasmin_avg_{scenario}_ts19762100_ls_VFVG.nc", @@ -99,6 +103,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -114,6 +138,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TNd")) is not None else None @@ -122,6 +151,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_seasonal_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/tasmin_EC-EARTH_CCLM4-8-17_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -130,6 +163,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -173,6 +226,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_annual_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/tasmin_EC-EARTH_CCLM4-8-17_{scenario}_ts19762100_ls_VFVG.nc", @@ -181,6 +238,26 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -196,6 +273,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TNd")) is not None else None @@ -204,6 +286,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_seasonal_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/tasmin_EC-EARTH_RACMO22E_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -212,6 +298,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -255,6 +361,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_annual_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/tasmin_EC-EARTH_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -263,6 +373,26 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -278,6 +408,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TNd")) is not None else None @@ -286,6 +421,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_seasonal_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/tasmin_EC-EARTH_RCA4_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -294,6 +433,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -337,6 +496,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_annual_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/tasmin_EC-EARTH_RCA4_{scenario}_ts19762100_ls_VFVG.nc", @@ -345,6 +508,26 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -360,6 +543,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TNd")) is not None else None @@ -368,6 +556,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_seasonal_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/tasmin_HadGEM2-ES_RACMO22E_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -376,6 +568,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -419,6 +631,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_annual_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/tasmin_HadGEM2-ES_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -427,6 +643,26 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -442,6 +678,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TNd")) is not None else None @@ -450,6 +691,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_seasonal_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/tasmin_MPI-ESM-LR_REMO2009_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -458,6 +703,26 @@ def generate_configurations( color_scale_min=-3, color_scale_max=32, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -501,6 +766,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_annual_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/tasmin_MPI-ESM-LR_REMO2009_{scenario}_ts19762100_ls_VFVG.nc", @@ -509,6 +778,26 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -524,6 +813,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TNd")) is not None else None @@ -532,6 +826,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_seasonal_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin_stdup", wms_main_layer_name="tasmin_stdup", thredds_url_pattern="ensymbc/std/clipped/tasmin_stdup_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -540,6 +838,31 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -579,6 +902,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_seasonal_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin_stddown", wms_main_layer_name="tasmin_stddown", thredds_url_pattern="ensymbc/std/clipped/tasmin_stddown_{scenario}_{year_period}_ts19762100_ls_VFVG.nc", @@ -587,6 +914,31 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -626,6 +978,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_annual_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin_stdup", wms_main_layer_name="tasmin_stdup", thredds_url_pattern="ensymbc/std/clipped/tasmin_stdup_{scenario}_ts19762100_ls_VFVG.nc", @@ -634,6 +990,31 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -649,10 +1030,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tasmin_annual_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin_stddown", wms_main_layer_name="tasmin_stddown", thredds_url_pattern="ensymbc/std/clipped/tasmin_stddown_{scenario}_ts19762100_ls_VFVG.nc", @@ -661,6 +1051,31 @@ def generate_configurations( color_scale_min=-13, color_scale_max=27, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -676,10 +1091,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tasmin_30yr_anomaly_seasonal_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/tasmin_avgagree_anom_{time_window}_{scenario}_{year_period}_VFVGTAA.nc", @@ -688,6 +1112,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -737,6 +1186,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_30yr_anomaly_seasonal_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="taspr5rcm/clipped/tasmin_EC-EARTH_CCLM4-8-17_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -745,6 +1198,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -794,6 +1267,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_30yr_anomaly_seasonal_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="taspr5rcm/clipped/tasmin_EC-EARTH_RACMO22E_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -802,6 +1279,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -851,6 +1348,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_30yr_anomaly_seasonal_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="taspr5rcm/clipped/tasmin_EC-EARTH_RCA4_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -859,6 +1360,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -908,6 +1429,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_30yr_anomaly_seasonal_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="taspr5rcm/clipped/tasmin_HadGEM2-ES_RACMO22E_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -916,6 +1441,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -965,6 +1510,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tasmin_30yr_anomaly_seasonal_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tasmin", wms_main_layer_name="tasmin", thredds_url_pattern="taspr5rcm/clipped/tasmin_MPI-ESM-LR_REMO2009_{scenario}_seas_{time_window}{year_period}_VFVGTAA.nc", @@ -973,6 +1522,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=6, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tasmin") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") diff --git a/arpav_ppcv/bootstrapper/coverage_configurations/tr.py b/arpav_ppcv/bootstrapper/coverage_configurations/tr.py index a49524e1..29e1b965 100644 --- a/arpav_ppcv/bootstrapper/coverage_configurations/tr.py +++ b/arpav_ppcv/bootstrapper/coverage_configurations/tr.py @@ -1,27 +1,14 @@ -""" -- [x] tr_annual_absolute_model_ensemble -- [x] tr_annual_absolute_model_ensemble_upper_uncertainty -- [x] tr_annual_absolute_model_ensemble_lower_uncertainty -- [x] tr_annual_absolute_model_ec_earth_cclm4_8_17 -- [x] tr_annual_absolute_model_ec_earth_racmo22e -- [x] tr_annual_absolute_model_ec_earth_rca4 -- [x] tr_annual_absolute_model_hadgem2_es_racmo22e -- [x] tr_annual_absolute_model_mpi_esm_lr_remo2009 - -- [x] 30year anomaly - - [x] tr_30yr_anomaly_annual_agree_model_ensemble - - [x] tr_30yr_anomaly_annual_model_ec_earth_cclm4_8_17 - - [x] tr_30yr_anomaly_annual_model_ec_earth_racmo22e - - [x] tr_30yr_anomaly_annual_model_ec_earth_rca4 - - [x] tr_30yr_anomaly_annual_model_hadgem2_es_racmo22e - - [x] tr_30yr_anomaly_annual_model_mpi_esm_lr_remo2009 -""" from ...schemas.base import ObservationAggregationType from ...schemas.coverages import ( CoverageConfigurationCreate, ConfigurationParameterPossibleValueCreate, ) +_DISPLAY_NAME_ENGLISH = "Tropical nights" +_DISPLAY_NAME_ITALIAN = "Notti tropicali" +_DESCRIPTION_ENGLISH = "Number of days with minimum temperature greater than 20 °C" +_DESCRIPTION_ITALIAN = "Numero di giorni con temperatura minima superiore a 20 °C" + def generate_configurations( conf_param_values, variables @@ -29,6 +16,10 @@ def generate_configurations( return [ CoverageConfigurationCreate( name="tr_annual_absolute_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="ensymbc/clipped/ecatr_20_avg_{scenario}_ts19762100_ls_VFVG.nc", @@ -37,6 +28,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=120, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -52,6 +63,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TR")) is not None else None @@ -60,6 +76,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tr_annual_absolute_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="EC-EARTH_CCLM4-8-17ymbc/clipped/ecatr_20_EC-EARTH_CCLM4-8-17_{scenario}_ts19762100_ls_VFVG.nc", @@ -68,6 +88,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=120, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -83,6 +123,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TR")) is not None else None @@ -91,6 +136,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tr_annual_absolute_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="EC-EARTH_RACMO22Eymbc/clipped/ecatr_20_EC-EARTH_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -99,6 +148,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=120, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -114,6 +183,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TR")) is not None else None @@ -122,6 +196,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tr_annual_absolute_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="EC-EARTH_RCA4ymbc/clipped/ecatr_20_EC-EARTH_RCA4_{scenario}_ts19762100_ls_VFVG.nc", @@ -130,6 +208,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=120, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -145,6 +243,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TR")) is not None else None @@ -153,6 +256,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tr_annual_absolute_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="HadGEM2-ES_RACMO22Eymbc/clipped/ecatr_20_HadGEM2-ES_RACMO22E_{scenario}_ts19762100_ls_VFVG.nc", @@ -161,6 +268,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=120, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -176,6 +303,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TR")) is not None else None @@ -184,6 +316,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tr_annual_absolute_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="MPI-ESM-LR_REMO2009ymbc/clipped/ecatr_20_MPI-ESM-LR_REMO2009_{scenario}_ts19762100_ls_VFVG.nc", @@ -192,6 +328,26 @@ def generate_configurations( color_scale_min=0, color_scale_max=120, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -207,6 +363,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], observation_variable_id=( v.id if (v := variables.get("TR")) is not None else None @@ -215,6 +376,10 @@ def generate_configurations( ), CoverageConfigurationCreate( name="tr_annual_absolute_model_ensemble_upper_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr_stdup", wms_main_layer_name="tr_stdup", thredds_url_pattern="ensymbc/std/clipped/ecatr_20_stdup_{scenario}_ts19762100_ls_VFVG.nc", @@ -223,6 +388,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "upper_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -238,10 +428,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tr_annual_absolute_model_ensemble_lower_uncertainty", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr_stddown", wms_main_layer_name="tr_stddown", thredds_url_pattern="ensymbc/std/clipped/ecatr_20_stddown_{scenario}_ts19762100_ls_VFVG.nc", @@ -250,6 +449,31 @@ def generate_configurations( color_scale_min=0, color_scale_max=100, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "annual") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "absolute") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("uncertainty_type", "lower_bound") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("scenario", "rcp26") @@ -265,10 +489,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tr_30yr_anomaly_annual_agree_model_ensemble", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr-uncertainty_group", thredds_url_pattern="ensembletwbc/std/clipped/ecatran_20_avgagree_{time_window}_{scenario}_ls_VFVG.nc", @@ -277,6 +510,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "model_ensemble") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -302,10 +555,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tr_30yr_anomaly_annual_model_ec_earth_cclm4_8_17", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="indici5rcm/clipped/ecatran_20_EC-EARTH_CCLM4-8-17_{scenario}_{time_window}_ls_VFVG.nc", @@ -314,6 +576,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_cclm_4_8_17") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -339,10 +621,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tr_30yr_anomaly_annual_model_ec_earth_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="indici5rcm/clipped/ecatran_20_EC-EARTH_RACMO22E_{scenario}_{time_window}_ls_VFVG.nc", @@ -351,6 +642,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -376,10 +687,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tr_30yr_anomaly_annual_model_ec_earth_rca4", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="indici5rcm/clipped/ecatran_20_EC-EARTH_RCA4_{scenario}_{time_window}_ls_VFVG.nc", @@ -388,6 +708,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "ec_earth_rca4") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -413,10 +753,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tr_30yr_anomaly_annual_model_hadgem2_es_racmo22e", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="indici5rcm/clipped/ecatran_20_HadGEM2-ES_RACMO22E_{scenario}_{time_window}_ls_VFVG.nc", @@ -425,6 +774,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "hadgem2_racmo22e") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -450,10 +819,19 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), CoverageConfigurationCreate( name="tr_30yr_anomaly_annual_model_mpi_esm_lr_remo2009", + display_name_english=_DISPLAY_NAME_ENGLISH, + display_name_italian=_DISPLAY_NAME_ITALIAN, + description_english=_DESCRIPTION_ENGLISH, + description_italian=_DESCRIPTION_ITALIAN, netcdf_main_dataset_name="tr", wms_main_layer_name="tr", thredds_url_pattern="indici5rcm/clipped/ecatran_20_MPI-ESM-LR_REMO2009_{scenario}_{time_window}_ls_VFVG.nc", @@ -462,6 +840,26 @@ def generate_configurations( color_scale_min=-5, color_scale_max=75, possible_values=[ + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_variable", "tr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("aggregation_period", "30yr") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("measure", "anomaly") + ].id + ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("climatological_model", "mpi_esm_lr_remo2009") + ].id + ), ConfigurationParameterPossibleValueCreate( configuration_parameter_value_id=conf_param_values[ ("time_window", "tw1") @@ -487,6 +885,11 @@ def generate_configurations( ("scenario", "rcp85") ].id ), + ConfigurationParameterPossibleValueCreate( + configuration_parameter_value_id=conf_param_values[ + ("year_period", "year") + ].id + ), ], ), ] diff --git a/arpav_ppcv/webapp/api_v2/schemas/coverages.py b/arpav_ppcv/webapp/api_v2/schemas/coverages.py index 3fe0eec8..33536129 100644 --- a/arpav_ppcv/webapp/api_v2/schemas/coverages.py +++ b/arpav_ppcv/webapp/api_v2/schemas/coverages.py @@ -161,6 +161,7 @@ class CoverageIdentifierReadListItem(pydantic.BaseModel): related_coverage_configuration_url: str wms_base_url: str wms_main_layer_name: str | None = None + possible_values: list[ConfigurationParameterPossibleValueRead] @classmethod def from_db_instance( @@ -179,7 +180,6 @@ def from_db_instance( thredds_url_fragment, ) ) - return cls( identifier=instance.identifier, wms_base_url=wms_base_url, @@ -190,6 +190,21 @@ def from_db_instance( coverage_configuration_id=instance.configuration.id, ) ), + possible_values=[ + ConfigurationParameterPossibleValueRead( + configuration_parameter_name=pv.configuration_parameter_value.configuration_parameter.name, + configuration_parameter_display_name_english=( + pv.configuration_parameter_value.configuration_parameter.display_name_english + ), + configuration_parameter_display_name_italian=( + pv.configuration_parameter_value.configuration_parameter.display_name_italian + ), + configuration_parameter_value=pv.configuration_parameter_value.name, + ) + for pv in instance.configuration.retrieve_used_values( + instance.identifier + ) + ], )