From 7f8e7378ffef3eb0922d8df9d4c706c3fd72f1c4 Mon Sep 17 00:00:00 2001 From: Hoa Ben The Nguyen <hbnguye@stud.ntnu.no> Date: Tue, 14 May 2024 11:55:03 +0200 Subject: [PATCH] removed: unused functions and comments --- server/data_processing/process_lidar_data.py | 6 ++++-- server/map_handler/input_new_data.py | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/data_processing/process_lidar_data.py b/server/data_processing/process_lidar_data.py index 991abbf1..de82b3e1 100644 --- a/server/data_processing/process_lidar_data.py +++ b/server/data_processing/process_lidar_data.py @@ -6,7 +6,7 @@ import laspy import numpy as np from server.data_processing.area_processing import calculate_corners, define_gridareas, inArea, find_height, \ - closest_points, position_relative_to_pointcloud, define_grid_lidardata + closest_points, define_grid_lidardata # Info about data @@ -95,6 +95,8 @@ def calculate_area_data(center, body_of_water, path): # Refactor lidar data to a readable format iceOver = laspy.read(path) + print(iceOver[0]) + ice_points = list(zip(iceOver.X, iceOver.Y, iceOver.Z)) max_point = max(ice_points) @@ -138,4 +140,4 @@ def calculate_area_data(center, body_of_water, path): return [] # return [0] if no data collected from lidar -# print(calculate_area_data((61, 11), 'mj\u00f8sa', "server\\lidar_data\\mj\u00f8sa\\measurement_id_2.laz")) \ No newline at end of file +print(calculate_area_data((61, 11), 'mj\u00f8sa', "server\\lidar_data\\mj\u00f8sa\\measurement_id_2.laz")) \ No newline at end of file diff --git a/server/map_handler/input_new_data.py b/server/map_handler/input_new_data.py index e4f7dcc8..59c980e8 100644 --- a/server/map_handler/input_new_data.py +++ b/server/map_handler/input_new_data.py @@ -43,6 +43,8 @@ def input_new_Lidar_data(self, cursor, sensorId, bodyOfWater): laz_file_path = "server\\lidar_data\\" + bodyOfWater + "\\measurement_id_" + str(measurement_id)+".laz" + about_laz_file(laz_file_path) + # data about the file read from # about_laz = about_laz_file() cannot do this if data is changed # scale_factor = max(about_laz[2]) -- GitLab