Skip to content

Commit 213047b

Browse files
committed
fix(batch): deduplicate ping_time in MVBS/NASC combine too
1 parent 550c68d commit 213047b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/batch_processing/run_combine_daily.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,13 @@ def combine_mvbs_or_nasc(
313313

314314
freq_datasets.append(freq_ds)
315315

316+
# Deduplicate ping_time (10s MVBS bins can overlap at pulse mode boundaries)
317+
for i, fds in enumerate(freq_datasets):
318+
if "ping_time" in fds.dims:
319+
idx = fds.get_index("ping_time")
320+
if idx.duplicated().any():
321+
freq_datasets[i] = fds.sel(ping_time=~idx.duplicated())
322+
316323
if len(freq_datasets) == 1:
317324
combined = freq_datasets[0]
318325
elif concat_dim == "distance":

0 commit comments

Comments
 (0)