Switched cm to m in time-series
This commit is contained in:
parent
20176f4b98
commit
512b80eb06
1 changed files with 7 additions and 1 deletions
|
@ -3,6 +3,7 @@ import configparser
|
||||||
import logging
|
import logging
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description="Pre-process time-series")
|
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.debug(f"{t=}")
|
||||||
|
|
||||||
log.info(f"Saving timeseries to '{out_ts}'")
|
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"))
|
||||||
|
|
Loading…
Reference in a new issue