Skip to content

Commit

Permalink
Add missing check_call for velocity interpolation
Browse files Browse the repository at this point in the history
Add missing check_call for velocity interpolation from MEaSURES
dataset. Also fix small typo.
  • Loading branch information
trhille committed Feb 29, 2024
1 parent 489e0b1 commit 8a8bb4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compass/landice/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 8a8bb4a

Please sign in to comment.