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

Polish

parent c97da20e
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,8 @@ if __name__ == "__main__":
parser.add_argument("shpc_dir", help = "directory containing SHPC, with "
"visible eddies at all dates")
parser.add_argument("orientation", choices = ["Anticyclones", "Cyclones"])
# Label group:
group = parser.add_mutually_exclusive_group()
group.add_argument("-l", "--label_type",
choices = ["root", "leaf", "split", "merge", "all",
......@@ -117,16 +119,20 @@ if __name__ == "__main__":
group.add_argument("--label_date", type = int, metavar = "DATE_INDEX")
group.add_argument("--label_node", metavar = 'NODE', type = int,
nargs = "+")
parser.add_argument("-s", "--save", metavar = "FORMAT",
help = "Save file to specified format")
parser.add_argument("-t", "--time", action = "store_true",
help = "Report elapsed time")
# Selection group:
group = parser.add_mutually_exclusive_group()
group.add_argument("-n", "--node", help = "Select component containing "
"node", type = int)
group.add_argument("-w", "--window", help = "choose a limited plot window",
type = float, nargs = 4,
metavar = ("LLLON", "LLLAT", "URLON", "URLAT"))
args = parser.parse_args()
if args.label_type:
......
......@@ -82,14 +82,13 @@ if __name__ == "__main__":
parser.add_argument(
"--annotate",
action="store_true",
help="annotate " "the first point of trajectory with node number",
help="annotate the first point of trajectory with node number",
)
parser.add_argument(
"--min_duration",
type=int,
default=1,
help="minimum duration of plotted trajectories (in "
"time steps), >= 1",
help="minimum duration of plotted trajectories (in time steps), >= 1",
)
args = parser.parse_args()
......
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