Signal processing: Fix 'time_noise' and 'depth_noise' recomputation.

This commit is contained in:
parouby committed 2025-04-24 11:23:21 +02:00
1 parent 84fe5738a3
commit 68d3bd14aa
2 files changed
+16 -27

No files matched your search

+11 -6
View File
@@ -199,12 +199,17 @@ class ReadTableForOpen:
logger.debug(f"- stg.kt_read {stg.kt_read}")
logger.debug(f"- stg.kt_corrected {stg.kt_corrected}")
logger.debug(f"- stg.nb_profiles {stg.nb_profiles}")
logger.debug(f"- stg.nb_profiles_per_sec {stg.nb_profiles_per_sec}")
logger.debug(
f"- stg.nb_profiles_per_sec {stg.nb_profiles_per_sec}"
)
logger.debug(f"- stg.nb_cells {stg.nb_cells}")
logger.debug(f"- stg.cell_size {stg.cell_size}")
logger.debug(f"- stg.pulse_length {stg.pulse_length}")
logger.debug(f"- stg.nb_pings_per_sec {stg.nb_pings_per_sec}")
logger.debug(f"- stg.nb_pings_averaged_per_profile {stg.nb_pings_averaged_per_profile}")
logger.debug(
"- stg.nb_pings_averaged_per_profile "
+ f"{stg.nb_pings_averaged_per_profile}"
)
logger.debug(f"- stg.gain_rx {stg.gain_rx}")
logger.debug(f"- stg.gain_tx {stg.gain_tx}")
@@ -379,8 +384,8 @@ class ReadTableForOpen:
it = iter(data)
time = next(it)
depth = next(it)
time = np_f64_parse(next(it))
depth = np_f64_parse(next(it))
BS = np_f64_parse(next(it))
if len(BS) == 0:
@@ -390,12 +395,12 @@ class ReadTableForOpen:
stg.BS_noise_averaged_data.append(np.array([]))
else:
stg.time_noise.append(
np_f64_parse(time).reshape(
time.reshape(
(stg.freq[i].shape[0], -1)
)
)
stg.depth_noise.append(
np_f64_parse(depth).reshape(
depth.reshape(
(stg.freq[i].shape[0], -1)
)
)