1
Fork 0

Switched cm to m in time-series

This commit is contained in:
Edgar P. Burkhart 2022-03-31 10:31:45 +02:00
parent 20176f4b98
commit 512b80eb06
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -3,6 +3,7 @@ import configparser
import logging
import pathlib
import matplotlib.pyplot as plt
import numpy as np
parser = argparse.ArgumentParser(description="Pre-process time-series")
@ -39,4 +40,9 @@ t = np.linspace(0, 30 * 60, 2305)[:-1]
log.debug(f"{t=}")
log.info(f"Saving timeseries to '{out_ts}'")
np.savetxt(out_ts, np.stack((t, raw_ts["z"]), axis=1))
np.savetxt(out_ts, np.stack((t, raw_ts["z"]/100), axis=1))
fig, ax = plt.subplots()
ax.plot(t, raw_ts["z"])
ax.set(xlabel="t (s)", ylabel="z (cm)")
fig.savefig(out_root.joinpath("ts.pdf"))