Skip to content
Snippets Groups Projects
Commit 678334f6 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Write auxiliary files

Write files `grid_nml.txt`, `used_config_nml.txt` and `n_slices.txt`.
parent 1d49c866
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ from os import path
import util_eddies
import os
import argparse
import shutil
parser = argparse.ArgumentParser()
parser.add_argument("input_SHPC")
......@@ -59,3 +60,10 @@ for orientation in ["Anticyclones", "Cyclones"]:
w.shape(sr.shape)
ishape_last.write(f"{len(extremum_filt) - 1}\n")
fname = path.join(args.input_SHPC, "grid_nml.txt")
shutil.copy2(fname, args.output_SHPC)
fname = path.join(args.input_SHPC, "used_config_nml.txt")
shutil.copy2(fname, args.output_SHPC)
fname = path.join(args.output_SHPC, "n_slices.txt")
with open(fname, "w") as f: f.write("1\n")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment