Skip to content

Commit

Permalink
Fix ncks call
Browse files Browse the repository at this point in the history
We want to overwrite files if they exist.
  • Loading branch information
xylar committed Sep 12, 2023
1 parent 434cc6f commit 864e4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compass/ocean/iceshelf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 864e4e5

Please sign in to comment.