Open ricardogsilva opened 2 days ago
After some thought, my current plan is to implement a ClimaticIdentifier
model, which will have the following properties:
name: str
measure_type: MeasureType
aggregation_period: AggregationPeriod
display_name_english: str
display_name_italian: str
description_english: str
description_italian: str
unit_english: str
unit_italian: str
palette: str
color_scale_min: float
color_scale_max: float
data_precision: int
sort_order: int
This new model will have a 1:N
relationship with CoverageConfiguration
. I also plan to use it in the future in the station observations. This will result in:
CoverageConfiguration
ConfigurationParameter
instances describing climatological_variable
, aggregation_period
, measure_type
, as these all become properties of the climatic indicatorVariable
model, MeasureType
and AggregationPeriod
can be implemented as enum
swhich is used in the station observations sections
In the current version of the system we need to provide multiple details about the climatic indicator which is being used by both:
Information related to a climatic indicator is:
This information is currently duplicated in many different places (as instances of
ConfigurationParameter
, and as properties ofCoverageConfiguration
).Let's refactor into a way that has less duplication.