From 3bd04351d3456086336490071a8ebb5ab95d3d02 Mon Sep 17 00:00:00 2001 From: BaptisteVandecrux Date: Wed, 12 Jun 2024 14:45:49 +0200 Subject: [PATCH] renamed join_levels to join_l2 because join_l3 will have different merging function, attribute management and use site_id and list_station_id --- setup.py | 2 +- src/pypromice/process/{join_levels.py => join_l2.py} | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) rename src/pypromice/process/{join_levels.py => join_l2.py} (97%) diff --git a/setup.py b/setup.py index 117e4e84..bc64e4f1 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ 'console_scripts': [ 'get_promice_data = pypromice.get.get_promice_data:get_promice_data', 'get_l0tx = pypromice.tx.get_l0tx:get_l0tx', - 'join_levels = pypromice.process.join_levels:join_levels', + 'join_l2 = pypromice.process.join_levels:join_l2', 'get_l2 = pypromice.process.get_l2:get_l2', 'get_l3 = pypromice.process.get_l3:get_l3', 'get_l2tol3 = pypromice.process.get_l2tol3:get_l2tol3', diff --git a/src/pypromice/process/join_levels.py b/src/pypromice/process/join_l2.py similarity index 97% rename from src/pypromice/process/join_levels.py rename to src/pypromice/process/join_l2.py index 4beab4e8..1d9f9334 100644 --- a/src/pypromice/process/join_levels.py +++ b/src/pypromice/process/join_l2.py @@ -24,7 +24,6 @@ def parse_arguments_join(): return args def loadArr(infile): - print(infile) if infile.split('.')[-1].lower() == 'csv': df = pd.read_csv(infile, index_col=0, parse_dates=True) ds = xr.Dataset.from_dataframe(df) @@ -97,8 +96,7 @@ def join_levels(): # Resample to hourly, daily and monthly datasets and write to file prepare_and_write(all_ds, args.outpath, v, m, '60min') - # prepare_and_write(all_ds, out, v, m, '1D') - # prepare_and_write(all_ds, out, v, m, 'M') + print(f'Files saved to {os.path.join(args.outpath, name)}...') if __name__ == "__main__":