From 75395c5e55a97df3bc6f535d54b1cbdafb31b123 Mon Sep 17 00:00:00 2001 From: Mike McCann Date: Tue, 2 Dec 2025 21:11:11 -0800 Subject: [PATCH] Copy "combined.nc4" and "align.nc4" to the archive. --- .vscode/launch.json | 2 +- src/data/archive.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 324ee04..db045e5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -358,7 +358,7 @@ // Plankitvore deployment for CeNCOOS Syncro - whole month of April 2025 //"args": ["-v", "1", "--auv_name", "ahi", "--start", "20250401T000000", "--end", "20250502T000000", "--noinput", "--num_cores", "1", "--no_cleanup"] // Fails with ValueError: different number of dimensions on data and dims: 2 vs 1 for wetlabsubat_digitized_raw_ad_counts variable - "args": ["-v", "1", "--log_file", "pontus/missionlogs/2025/20250604_20250616/20250608T020852/202506080209_202506081934.nc4", "--no_cleanup"] + "args": ["-v", "1", "--log_file", "pontus/missionlogs/2025/20250604_20250616/20250608T020852/202506080209_202506081934.nc4", "--no_cleanup", "--clobber"] // Full month of June 2025 for Pontus with WetLabsUBAT Group data //"args": ["-v", "1", "--auv_name", "pontus", "--start", "20250601T000000", "--end", "20250702T000000", "--noinput", "--num_cores", "1", "--no_cleanup"] //"args": ["-v", "1", "--auv_name", "pontus", "--start", "20250601T000000", "--end", "20250702T000000", "--noinput", "--num_cores", "1", "--no_cleanup", "--clobber"] diff --git a/src/data/archive.py b/src/data/archive.py index d1d745a..5a549fc 100755 --- a/src/data/archive.py +++ b/src/data/archive.py @@ -233,7 +233,7 @@ def copy_to_LRAUV(self, log_file: str, freq: str = FREQ) -> None: # noqa: C901, "%-75s exists, but is not being archived because --clobber is not specified.", src_file.name, ) - for ftype in (f"{freq}.nc", "combined.nc", "align.nc"): + for ftype in (f"{freq}.nc", "combined.nc4", "align.nc4"): src_file = Path(src_dir, f"{Path(log_file).stem}_{ftype}") dst_file = Path(dst_dir, src_file.name) if self.clobber: