Skip to content

Commit

Permalink
Only use zenith data for SPC mean difference
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmarke committed Oct 18, 2024
1 parent 8f21ffb commit 9202816
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mwrpy/level1/quality_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,15 @@ def spectral_consistency(
{"Tb": (data["tb"][:, ifreq] - data["tb_spectrum"][:, ifreq])},
index=pd.to_datetime(data["time"][:], unit="s"),
)
tb_mean = tb_df.resample(
tb_z = pd.DataFrame(
{
"Tb": (
data["tb"][ele_ind, ifreq] - data["tb_spectrum"][ele_ind, ifreq]
),
},
index=pd.to_datetime(data["time"][ele_ind], unit="s"),
)
tb_mean = tb_z.resample(
"20min", origin="start", closed="left", label="left", offset="10min"
).mean()
tb_mean = tb_mean.reindex(tb_df.index, method="nearest")
Expand Down

0 comments on commit 9202816

Please sign in to comment.