Ignore:
Timestamp:
Dec 18, 2011, 11:50:16 PM (13 years ago)
Author:
aslmd
Message:

UTIL:PYTHON: allowed to use regex in file input: e.g. pp.py -f wrfout_d03* --operation cat -v USTM --lon -65 --lat 81 --axtime ls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/myscript.py

    r468 r478  
    22
    33    ### I/O
    4     parser.add_option('-f', '--file',   action='append',dest='file',     type="string",  default=None,  help='[NEEDED] filename. Append: different figures. Comma-separated: same figure (+ possible --operation). Regex tip: -f `echo foo* | sed s+" "+","+g`')
     4    parser.add_option('-f', '--file',   action='append',dest='file',     type="string",  default=None,  help='[NEEDED] filename. Append: different figures. Comma-separated: same figure (+ possible --operation). Multiple files: use e.g. -f "foo*" or any UNIX regex')
    55    parser.add_option('-t', '--target', action='store',dest='tgt',       type="string",  default=None,  help='destination folder')
    66    parser.add_option('-S', '--save',   action='store',dest='save',      type="string",  default="gui", help='save mode (gui,png,eps,svg,pdf,txt,html,avi) [gui]')
Note: See TracChangeset for help on using the changeset viewer.