diff --git a/swash/processing/sws_npz.py b/swash/processing/sws_npz.py index 0afc796..aceb6bd 100644 --- a/swash/processing/sws_npz.py +++ b/swash/processing/sws_npz.py @@ -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)