Skip to content

Commit 983c309

Browse files
committed
manually remove duplicate times before merging BRT and BLB ds
1 parent bf22aea commit 983c309

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mwr_raw2l1/measurement/measurement_construct_helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ def merge_brt_blb(all_data):
264264
logger.warning(
265265
'Skipping {} of {} scanning observations due to identical timestamp with zenith obs for {}'.format(
266266
len(duplicate_times), len(blb_ts.time), duplicate_times))
267-
out = out.merge(blb_ts, join='outer', compat='override')
267+
# remove duplicate times from BRT and merge
268+
out = out.sel(time=~out.time.isin(duplicate_times))
269+
out = out.merge(blb_ts, join='outer')
268270
else:
269271
out = scan_to_timeseries_from_aux(all_data['blb'], hkd=all_data['hkd'])
270272

0 commit comments

Comments
 (0)