You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"--start", type=str, help="start date of simulation in format like yyyy-mm-dd"
340
-
)
341
-
parser.add_argument(
342
-
"--dir",
343
-
default=".",
344
-
type=str,
345
-
help="directory in which output will be processed",
346
-
)
347
-
parser.add_argument(
348
-
"--fbase",
349
-
type=str,
350
-
default=["schout.nc"],
351
-
nargs="+",
352
-
help="File base name. This will either be 'schout.nc' or a list of files like 'elev.61,hvel.64,salt.63'. ",
353
-
)
354
-
parser.add_argument(
355
-
"--hotstart", action="store_true", help="Combine hotstart in addition to fbase"
356
-
)
357
-
parser.add_argument(
358
-
"--hotstart_only",
359
-
action="store_true",
360
-
help="Only combine hotstart -- avoids file search errors when nothing left to combine",
361
-
)
362
-
parser.add_argument(
363
-
"--consume",
364
-
action="store_true",
365
-
help="Delete combined files or unrequested files",
366
-
)
367
-
parser.add_argument(
368
-
"--assume_done",
369
-
action="store_true",
370
-
help="Assume that the simulation is finished, so incomplete blocks can be deleted",
371
-
)
372
-
parser.add_argument(
373
-
"--combiner", default=f"{combine_exe}", help="Executable for combine_output."
374
-
)
375
-
parser.add_argument(
376
-
"--hot_combiner",
377
-
default=f"{combine_hotstart_exe}",
378
-
help="Executable for combine_output.",
379
-
)
380
-
parser.add_argument(
381
-
"--sndx", default=None, type=int, help="First index to consider for processing."
382
-
)
383
-
parser.add_argument(
384
-
"--endx", default=None, type=int, help="Last index to consider for processing."
385
-
)
386
-
parser.add_argument(
387
-
"--sndx_hot",
388
-
default=None,
389
-
type=int,
390
-
help="First index to consider for processing.",
391
-
)
392
-
parser.add_argument(
393
-
"--endx_hot",
394
-
default=None,
395
-
type=int,
396
-
help="Last index to consider for processing.",
397
-
)
398
-
399
-
parser.add_argument(
400
-
"--datefile",
401
-
type=str,
402
-
help="File containing list of dates. Each line can have a single date or comma-separated pair indicating block start and end. Blank lines are ignored and # is comment character that can comment the entire line or be placed at the side of a line after the date(s). ",
403
-
)
404
-
parser.add_argument(
405
-
"--blocks_per_day",
406
-
type=int,
407
-
default=1,
408
-
help="Blocks used to store 1 day worth of output.",
help="start date of simulation in format like yyyy-mm-dd",
407
+
)
408
+
@click.option(
409
+
"--dir",
410
+
"dir",
411
+
default=".",
412
+
type=click.Path(),
413
+
help="directory in which output will be processed",
414
+
)
415
+
@click.option(
416
+
"--fbase",
417
+
multiple=True,
418
+
default=["schout.nc"],
419
+
help="File base name. This will either be 'schout.nc' or a list of files like 'elev.61,hvel.64,salt.63'. ",
420
+
)
421
+
@click.option("--hotstart", is_flag=True, help="Combine hotstart in addition to fbase")
422
+
@click.option(
423
+
"--hotstart_only",
424
+
is_flag=True,
425
+
help="Only combine hotstart -- avoids file search errors when nothing left to combine",
426
+
)
427
+
@click.option(
428
+
"--consume", is_flag=True, help="Delete combined files or unrequested files"
429
+
)
430
+
@click.option(
431
+
"--assume_done",
432
+
is_flag=True,
433
+
help="Assume that the simulation is finished, so incomplete blocks can be deleted",
434
+
)
435
+
@click.option(
436
+
"--combiner", default=f"{combine_exe}", help="Executable for combine_output."
437
+
)
438
+
@click.option(
439
+
"--hot_combiner",
440
+
default=f"{combine_hotstart_exe}",
441
+
help="Executable for combine_output.",
442
+
)
443
+
@click.option(
444
+
"--sndx", default=None, type=int, help="First index to consider for processing."
445
+
)
446
+
@click.option(
447
+
"--endx", default=None, type=int, help="Last index to consider for processing."
448
+
)
449
+
@click.option(
450
+
"--sndx_hot", default=None, type=int, help="First index to consider for processing."
451
+
)
452
+
@click.option(
453
+
"--endx_hot", default=None, type=int, help="Last index to consider for processing."
454
+
)
455
+
@click.option(
456
+
"--datefile",
457
+
type=str,
458
+
help="File containing list of dates. Each line can have a single date or comma-separated pair indicating block start and end. Blank lines are ignored and # is comment character that can comment the entire line or be placed at the side of a line after the date(s). ",
459
+
)
460
+
@click.option(
461
+
"--blocks_per_day",
462
+
type=int,
463
+
default=1,
464
+
help="Blocks used to store 1 day worth of output.",
0 commit comments