Skip to content

Commit

Permalink
Range thresholding moved to earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
PennyHow committed Nov 29, 2023
1 parent ec99e7c commit 26d59c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pypromice/process/L0toL1.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def toL1(L0, vars_df, T_0=273.15, tilt_threshold=-100):
if l not in ['time', 'msg_i', 'gps_lat', 'gps_lon', 'gps_alt', 'gps_time']:
ds[l] = _reformatArray(ds[l])

#Perform range threshold before all corrections are applied
ds = clip_values(ds, vars_df)

# ds['time_orig'] = ds['time'] # Not used

# The following drops duplicate datetime indices. Needs to run before _addTimeShift!
Expand Down

0 comments on commit 26d59c2

Please sign in to comment.