Skip to content

Commit 072e5fd

Browse files
committed
Moved default scan time values to scantime_from_aux function to avoir interfering with Appex reader
1 parent 11648f6 commit 072e5fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mwr_raw2l1/measurement/scan_transform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from mwr_raw2l1.utils.num_utils import timedelta2s
1010

1111

12-
def scan_endtime_to_time(endtime, n_angles, time_per_angle=11, from_starttime=True):
12+
def scan_endtime_to_time(endtime, n_angles, time_per_angle=11, from_starttime=False):
1313
"""
1414
RPG and Attex scan files only have one timestamp per scan. This function returns the approximate timestamp for the
1515
observation at each angle
@@ -70,6 +70,7 @@ def scantime_from_aux(blb, hkd=None, brt=None):
7070
n_ele = len(blb['scan_ele'].values)
7171

7272
endtime2time_params = dict(endtime=time_scan, n_angles=n_ele)
73+
endtime2time_params['from_starttime'] = True # default assume time in blb is start time of scan
7374
if hkd is not None and 'BLscan_active' in hkd:
7475
time_scan_active = hkd.time[hkd.BLscan_active.values == 1].values
7576
time_zen_active = hkd.time[hkd.BLscan_active.values == 0].values

0 commit comments

Comments
 (0)