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

Move input of date higher

Because we are going to extract the rest of the script below into a
function.
parent d365e754
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,8 @@ argparser.add_argument("file", nargs = "+", ...@@ -26,6 +26,8 @@ argparser.add_argument("file", nargs = "+",
argparser.add_argument("-b", "--bbox", nargs=4, type = float, argparser.add_argument("-b", "--bbox", nargs=4, type = float,
metavar = ("xmin", "xmax", "ymin", "ymax")) metavar = ("xmin", "xmax", "ymin", "ymax"))
args = argparser.parse_args() args = argparser.parse_args()
d = input("Enter first date (integer value):")
d = int(d)
inst_eddies_exe = "@CMAKE_CURRENT_BINARY_DIR@/inst_eddies" inst_eddies_exe = "@CMAKE_CURRENT_BINARY_DIR@/inst_eddies"
if not os.access(inst_eddies_exe, os.X_OK): if not os.access(inst_eddies_exe, os.X_OK):
...@@ -36,8 +38,6 @@ if os.access("main_nml.txt", os.R_OK): ...@@ -36,8 +38,6 @@ if os.access("main_nml.txt", os.R_OK):
else: else:
sys.exit('"main_nml.txt" not found') sys.exit('"main_nml.txt" not found')
d = input("Enter first date (integer value):")
d = int(d)
nco_instance = nco.Nco() nco_instance = nco.Nco()
for orient in ["cyclo", "anti"]: for orient in ["cyclo", "anti"]:
......
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