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

update: lidar data file

parent 4d69a270
No related branches found
No related tags found
1 merge request!16Clhp map into main
This diff is collapsed.
No preview for this file type
...@@ -73,11 +73,7 @@ def get_measurements(self, lake_name): ...@@ -73,11 +73,7 @@ def get_measurements(self, lake_name):
# Populate remaining non-processed subdivisions and create "invalid" or "proxy" measurement to store them # Populate remaining non-processed subdivisions and create "invalid" or "proxy" measurement to store them
remaining_sub_divs = fill_remaining_subdivisions(lake_name, sub_div_ids) remaining_sub_divs = fill_remaining_subdivisions(lake_name, sub_div_ids)
print("Len remaining_sub_divs: ", len(remaining_sub_divs)) proxy = {
print("Sub_div_ids: ", sub_div_ids)
print("Len measurements: ", len(measurements))
measurements[-1] = {
'MeasurementID': -1, 'MeasurementID': -1,
'TimeMeasured': str(datetime.now()), 'TimeMeasured': str(datetime.now()),
'CenterLat': None, 'CenterLat': None,
...@@ -86,6 +82,8 @@ def get_measurements(self, lake_name): ...@@ -86,6 +82,8 @@ def get_measurements(self, lake_name):
'Subdivisions': remaining_sub_divs 'Subdivisions': remaining_sub_divs
} }
measurements.append(proxy)
# Write the newest measurements to file # Write the newest measurements to file
with open(LAKE_RELATIONS_PATH + lake_name.lower() + '_measurements.json', 'w') as f: with open(LAKE_RELATIONS_PATH + lake_name.lower() + '_measurements.json', 'w') as f:
json.dump(measurements, f) json.dump(measurements, f)
......
...@@ -4,7 +4,11 @@ ...@@ -4,7 +4,11 @@
"TimeMeasured": "2024-04-15 16:23:28.620516", "TimeMeasured": "2024-04-15 16:23:28.620516",
"CenterLat": 60.841532, "CenterLat": 60.841532,
"CenterLon": 10.717878, "CenterLon": 10.717878,
"Sensor": 2, "Sensor": {
"SensorID": 2,
"SensorType": "LiDar",
"Active": true
},
"Subdivisions": [ "Subdivisions": [
{ {
"SubdivID": 36, "SubdivID": 36,
......
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