We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf75791 commit 0bd970eCopy full SHA for 0bd970e
1 file changed
mwrpy/level2/lwp_offset.py
@@ -1,5 +1,6 @@
1
"""Module for LWP offset correction."""
2
3
+import logging
4
from itertools import groupby
5
6
import numpy as np
@@ -108,6 +109,7 @@ def correct_lwp_offset(
108
109
> 12 * 3600
110
)
111
):
112
+ logging.info("Applying LWP offset from previous day.")
113
lwp_offset.loc[lwp_offset.index[0], "Lwp"] = offset_xd[0]
114
if (
115
(offset_xd[1] is not None)
@@ -118,6 +120,7 @@ def correct_lwp_offset(
118
120
119
121
122
123
+ logging.info("Applying LWP offset from next day.")
124
lwp_offset.loc[lwp_offset.index[-1], "Lwp"] = offset_xd[1]
125
if (np.isnan(lwp_offset.values).all()) and any(offset_xd):
126
lwp_offset.iloc[0] = np.nanmean(np.array(offset_xd).astype(float))
0 commit comments