From efaa9d9ab1078d38ae5fa64dcac22ce4824991e3 Mon Sep 17 00:00:00 2001 From: ThomasLecocq Date: Sun, 10 Dec 2023 01:38:39 +0100 Subject: [PATCH] DTT fix --- msnoise/s06compute_dtt2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/msnoise/s06compute_dtt2.py b/msnoise/s06compute_dtt2.py index 22784953..ee9ec6e4 100644 --- a/msnoise/s06compute_dtt2.py +++ b/msnoise/s06compute_dtt2.py @@ -116,6 +116,7 @@ def main(interval=1, loglevel="INFO"): values = [] + dates = [] for i in range(len(M.index)): errArray = EM.iloc[i] dtArray = M.iloc[i] @@ -137,7 +138,8 @@ def main(interval=1, loglevel="INFO"): VecXfilt, VecYfilt, w, intercept_origin=True) values.append([m, em, a, ea, m0, em0]) - output = pd.DataFrame(values, index=M.index, + dates.append(M.index[i]) + output = pd.DataFrame(values, index=dates, columns=["m", "em", "a", "ea", "m0", "em0"]) xr_save_dtt(station1, station2, components, filterid, mov_stack, output)