From 99accbbb38fb10d4caabf5855f9bfd811c1fb38c Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Mon, 6 Dec 2021 21:23:25 +0100 Subject: [PATCH] Polish --- Inst_eddies/inst_eddies_in.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Inst_eddies/inst_eddies_in.py b/Inst_eddies/inst_eddies_in.py index 1f52acf2..cfdf58c9 100755 --- a/Inst_eddies/inst_eddies_in.py +++ b/Inst_eddies/inst_eddies_in.py @@ -5,7 +5,6 @@ the file perf_report.csv. """ -import argparse import datetime import shutil import nco @@ -85,10 +84,12 @@ def loop_inst_eddies(files, bbox, d): if bbox: os.remove("cropped.nc") if __name__ == "__main__": + import argparse + argparser = argparse.ArgumentParser() argparser.add_argument("file", nargs = "+", - help = "NetCDF file containing SSH and velocity at a " - "single date") + help = "NetCDF file containing SSH and velocity " + "at a single date") argparser.add_argument("-b", "--bbox", nargs=4, type = float, metavar = ("xmin", "xmax", "ymin", "ymax")) args = argparser.parse_args() -- GitLab