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

Add creation of file `orientation.txt`

parent cc442ef0
No related branches found
No related tags found
No related merge requests found
......@@ -189,4 +189,12 @@ nml["grid_nml"] = dict(corner_deg = [matlab_data["X"][0], matlab_data["Y"][0]],
for factory in factories:
fname = path.join(factory["SHPC"], "grid_nml.txt")
nml.write(fname, force = True)
fname = path.join(factory["SHPC"], "orientation.txt")
with open(fname, "w") as f:
if factory["cyclone"]:
f.write("cyclones\n")
else:
f.write("anticyclones\n")
for k, v in factory["writers"].items(): v.close()
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