From 8a8bb4aa57f386d0af67a25dc52ac4e27367f7e4 Mon Sep 17 00:00:00 2001 From: Trevor Hillebrand Date: Wed, 28 Feb 2024 20:10:34 -0800 Subject: [PATCH] Add missing check_call for velocity interpolation Add missing check_call for velocity interpolation from MEaSURES dataset. Also fix small typo. --- compass/landice/mesh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compass/landice/mesh.py b/compass/landice/mesh.py index 3c8676db57..cfd04d38d6 100644 --- a/compass/landice/mesh.py +++ b/compass/landice/mesh.py @@ -1124,6 +1124,7 @@ def interp_ais_measures(self, data_path, mali_scrip, nProcs, dest_file): '-v', 'observedSurfaceVelocityX', 'observedSurfaceVelocityY', 'observedSurfaceVelocityUncertainty'] + check_call(args, logger=logger) def clean_up_after_interp(fname): @@ -1137,7 +1138,7 @@ def clean_up_after_interp(fname): """ # Create a backup in case clean-up goes awry - backup_name = f"{fname.split('.')[:-1][0]}_backup,nc" + backup_name = f"{fname.split('.')[:-1][0]}_backup.nc" copyfile(fname, backup_name) # Clean up: trim to iceMask and set large velocity