From 31fbe2b7ead21bf9672d26ea25ae3b662432981e Mon Sep 17 00:00:00 2001 From: Moritz Makowski Date: Tue, 14 May 2024 13:53:38 +0000 Subject: [PATCH] Fix bugs from rounding errors --- src/retrieval/session/create_session.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/retrieval/session/create_session.py b/src/retrieval/session/create_session.py index ff39858d..b6c62c9b 100644 --- a/src/retrieval/session/create_session.py +++ b/src/retrieval/session/create_session.py @@ -31,13 +31,13 @@ def _generate_pylot2_config(session: types.Proffast2RetrievalSession) -> None: "SENSOR_ID": session.ctx.sensor_id, "COORDINATES_LAT": - str(round(session.ctx.location.lat, 3)), + str(round(session.ctx.location.lat, 6)), "COORDINATES_LON": - str(round(session.ctx.location.lon, 3)), + str(round(session.ctx.location.lon, 6)), "COORDINATES_ALT": - str(round(session.ctx.location.alt / 1000.0, 3)), + str(round(session.ctx.location.alt / 1000.0, 6)), "UTC_OFFSET": - str(round(session.ctx.utc_offset, 2)), + str(round(session.ctx.utc_offset, 9)), "CONTAINER_ID": session.ctn.container_id, "CONTAINER_PATH": @@ -72,7 +72,7 @@ def _generate_pylot2_log_format( "SENSOR_ID": session.ctx.sensor_id, "UTC_OFFSET": - str(round(session.ctx.utc_offset, 2)), + str(round(session.ctx.utc_offset, 9)), "PRESSURE_CALIBRATION_FACTOR": str(round(session.ctx.calibration_factors.pressure, 9)), "PRESSURE_DATA_SOURCE":