Skip to content

Commit

Permalink
281 bootstrap values for the data precision of coverages (#283)
Browse files Browse the repository at this point in the history
* Add correct bootstrap values for data_precision

* Align bootstrap values for configuration parameter values with information from the staging env
  • Loading branch information
ricardogsilva authored Oct 29, 2024
1 parent 03b97b2 commit 479f04e
Show file tree
Hide file tree
Showing 22 changed files with 475 additions and 255 deletions.
504 changes: 250 additions & 254 deletions arpav_ppcv/bootstrapper/configurationparameters.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"Numero massimo di giorni consecutivi asciutti (precipitazione giornaliera "
"inferiore a 1 mm)"
)
_DATA_PRECISION = 0


def generate_configurations(
Expand All @@ -34,6 +35,7 @@ def generate_configurations(
palette="uncert-stippled/div-BrBG-inv",
color_scale_min=-40,
color_scale_max=40,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -121,6 +123,7 @@ def generate_configurations(
palette="default/div-BrBG-inv",
color_scale_min=-40,
color_scale_max=40,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -211,6 +214,7 @@ def generate_configurations(
palette="default/div-BrBG-inv",
color_scale_min=-40,
color_scale_max=40,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -301,6 +305,7 @@ def generate_configurations(
palette="default/div-BrBG-inv",
color_scale_min=-40,
color_scale_max=40,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -388,6 +393,7 @@ def generate_configurations(
palette="default/div-BrBG-inv",
color_scale_min=-40,
color_scale_max=40,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -478,6 +484,7 @@ def generate_configurations(
palette="default/div-BrBG-inv",
color_scale_min=-40,
color_scale_max=40,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down
15 changes: 15 additions & 0 deletions arpav_ppcv/bootstrapper/coverage_configurations/forecast/cdds.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Somma della temperatura media giornaliera meno 21°C se la temperatura media "
"giornaliera è maggiore di 24°C"
)
_DATA_PRECISION = 0


def generate_configurations(
Expand All @@ -37,6 +38,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -102,6 +104,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -166,6 +169,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -230,6 +234,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -291,6 +296,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -355,6 +361,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -419,6 +426,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -485,6 +493,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -552,6 +561,7 @@ def generate_configurations(
palette="uncert-stippled/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -623,6 +633,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -697,6 +708,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -771,6 +783,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -842,6 +855,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -916,6 +930,7 @@ def generate_configurations(
palette="default/seq-YlOrRd",
color_scale_min=0,
color_scale_max=1000,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down
15 changes: 15 additions & 0 deletions arpav_ppcv/bootstrapper/coverage_configurations/forecast/fd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
_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"
_DATA_PRECISION = 0


def generate_configurations(
Expand All @@ -31,6 +32,7 @@ def generate_configurations(
palette="default/seq-Blues-inv",
color_scale_min=0,
color_scale_max=200,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -97,6 +99,7 @@ def generate_configurations(
palette="default/seq-Blues-inv",
color_scale_min=0,
color_scale_max=200,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -166,6 +169,7 @@ def generate_configurations(
palette="default/seq-Blues-inv",
color_scale_min=0,
color_scale_max=200,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -235,6 +239,7 @@ def generate_configurations(
palette="default/seq-Blues-inv",
color_scale_min=0,
color_scale_max=200,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -301,6 +306,7 @@ def generate_configurations(
palette="default/seq-Blues-inv",
color_scale_min=0,
color_scale_max=200,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -370,6 +376,7 @@ def generate_configurations(
palette="default/seq-Blues-inv",
color_scale_min=0,
color_scale_max=200,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -439,6 +446,7 @@ def generate_configurations(
palette="default/seq-Blues-inv",
color_scale_min=0,
color_scale_max=200,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -506,6 +514,7 @@ def generate_configurations(
palette="default/seq-Blues-inv",
color_scale_min=0,
color_scale_max=200,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -574,6 +583,7 @@ def generate_configurations(
palette="uncert-stippled/seq-YlOrRd-inv",
color_scale_min=-85,
color_scale_max=5,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -646,6 +656,7 @@ def generate_configurations(
palette="default/seq-YlOrRd-inv",
color_scale_min=-85,
color_scale_max=5,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -721,6 +732,7 @@ def generate_configurations(
palette="default/seq-YlOrRd-inv",
color_scale_min=-85,
color_scale_max=5,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -796,6 +808,7 @@ def generate_configurations(
palette="default/seq-YlOrRd-inv",
color_scale_min=-85,
color_scale_max=5,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -868,6 +881,7 @@ def generate_configurations(
palette="default/seq-YlOrRd-inv",
color_scale_min=-85,
color_scale_max=5,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down Expand Up @@ -943,6 +957,7 @@ def generate_configurations(
palette="default/seq-YlOrRd-inv",
color_scale_min=-85,
color_scale_max=5,
data_precision=_DATA_PRECISION,
possible_values=[
ConfigurationParameterPossibleValueCreate(
configuration_parameter_value_id=conf_param_values[
Expand Down
Loading

0 comments on commit 479f04e

Please sign in to comment.