1
Fork 0

Fixed data as kwarg

This commit is contained in:
Edgar P. Burkhart 2022-03-04 10:38:46 +01:00
parent 3c0a4f3e83
commit c517ddaf68
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -33,23 +33,9 @@ log.info("Reading 'botl'")
rsws.read_scalar(sws_out.joinpath("botl.dat"))
log.info("Reading 'watl'")
rsws.read_scalar(sws_out.joinpath("watl.dat"))
# log.info("Reading 'press'")
# rsws.read_scalar(sws_out.joinpath("press.dat"))
# log.info("Reading 'disch'")
# rsws.read_vector(sws_out.joinpath("disch.dat"))
# log.info("Reading 'ustar'")
# rsws.read_scalar(sws_out.joinpath("ustar.dat"))
log.info("Reading 'vel'")
rsws.read_vector(sws_out.joinpath("vel.dat"))
# log.info("Reading 'vz'")
# rsws.read_scalar_lay(sws_out.joinpath("vz.dat"))
# log.info("Reading 'velk'")
# rsws.read_vector_lay(sws_out.joinpath("velk.dat"))
# log.info("Reading 'zk'")
# rsws.read_scalar_lay(sws_out.joinpath("zk.dat"))
# log.info("Reading 'brkp'")
# rsws.read_scalar(sws_out.joinpath("brkp.dat"))
log.info(f"Writing npz file in '{inp}'")
inp.mkdir(exist_ok=True)
np.savez_compressed(inp.joinpath("sws"), t=rsws.t, x=rsws.x, *rsws.data)
np.savez_compressed(inp.joinpath("sws"), t=rsws.t, x=rsws.x, **rsws.data)