From 864e4e53f22c6cdb98130c9763baf4837617a78f Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Sun, 27 Aug 2023 04:23:51 -0500 Subject: [PATCH] Fix ncks call We want to overwrite files if they exist. --- compass/ocean/iceshelf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compass/ocean/iceshelf.py b/compass/ocean/iceshelf.py index 8e0662ba60..7eaf9d9e76 100644 --- a/compass/ocean/iceshelf.py +++ b/compass/ocean/iceshelf.py @@ -157,7 +157,7 @@ def adjust_ssh(variable, iteration_count, step, update_pio=True, write_filename = out_filename write_netcdf(ds_out, write_filename) if convert_to_cdf5: - args = ['ncks', '-5', write_filename, out_filename] + args = ['ncks', '-O', '-5', write_filename, out_filename] subprocess.check_call(args) # Write the largest change in SSH and its lon/lat to a file