Skip to content
Snippets Groups Projects
Commit d3c829f0 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: legend values

parent 74cc3cc4
No related branches found
No related tags found
1 merge request!16Clhp map into main
......@@ -53,23 +53,23 @@ class ChoroplethMapState extends State<ChoroplethMap> {
MapColorMapper(
from: 0,
to: 4,
color: Color(0xFFff0000),
text: '{0cm},{4cm}'),
color: Color(0xffff0000),
text: '{0},{1}'),
MapColorMapper(
from: 4,
to: 8,
color: Color(0xffff6a00),
text: '8cm'),
text: '2'),
MapColorMapper(
from: 8,
to: 12,
color: Color(0xFFb1ff00),
text: '12cm'),
text: '3'),
MapColorMapper(
from: 12,
to: 400,
color: Color(0xFF00d6ff),
text: '>15cm'),
text: '4'),
],
);
}
......
12:44: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-10 06:00:00 tm. Adding avg value -11.049999999999969.
12:44: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-17 06:00:00 tm. Adding avg value -15.449999999999989.
12:44: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-02-17 06:00:00 sdfsw. Adding avg value 15.025000000000002.
12:44: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-02-18 06:00:00 sdfsw. Adding avg value 9.662500000000001.
12:44: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-01-18 06:00:00 sd. Adding avg value 35.3.
12:44: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-02-17 06:00:00 sd. Adding avg value 67.575.
12:44: weatherelement.py -> patch_novalue_in_weather_element_list: Value missing on UTM33 X266707 Y6749365 2024-02-18 06:00:00 sd. Adding avg value 66.6375.
No preview for this file type
......@@ -45,7 +45,7 @@ def cut_map(self, cursor, lake_name: str, cell_size_in_km: float = 0.5):
bounds = polygons[0].bounds
start_x, start_y, _, _ = bounds
cell_width = cell_size_in_km / 111.3200
cell_width = 0.5 / 111.3200
cell_height = cell_width / cos(start_x * 0.01745)
# Process all polygons
......
......@@ -54,7 +54,10 @@ def update_measurements(self, lake_name: str):
avg_thickness = sub_division['AvgThickness']
# Retrieve ice statistics for current subdivision
ice_stats = get_raw_dates(ice_prognosis_raw_data(sub_div_id=subdiv_id, x=center_lat, y=center_lng))
temp_to_date = "2024-10-12"
temp_from_date = "2024-10-19"
ice_stats = get_raw_dates(ice_prognosis_raw_data(
sub_div_id=subdiv_id, x=center_lat, y=center_lng), to_date=temp_to_date, from_date=temp_from_date)
# Ice statistics were retrieved successfully
if len(ice_stats) > 0 and len(ice_stats[0]) > 0:
......@@ -156,8 +159,10 @@ def fill_remaining_subdivisions(lake_name: str, processed_ids: list):
# Fetch weather data for each subdivision from the NVE model
# NB hard coded date to december 2024 for testing, remove to_date param before use
# temp_date = [datetime(2023, 12, 12)]
ice_stats = get_raw_dates(ice_prognosis_raw_data(sub_div_id=sub_div_id, x=center_lat, y=center_lng))
temp_to_date = "2024-10-12"
temp_from_date = "2024-10-19"
ice_stats = get_raw_dates(ice_prognosis_raw_data(
sub_div_id=sub_div_id, x=center_lat, y=center_lng), to_date=temp_to_date, from_date=temp_from_date)
if len(ice_stats) > 0 and len(ice_stats[0]) > 0:
total_ice_thickness = ice_stats[0]['Total ice (m)']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment