Changeset 820 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jun 12, 2016, 10:11:24 PM (8 years ago)
Author:
lfita
Message:

Improving help messages

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var.py

    r818 r820  
    7373
    7474parser = OptionParser()
    75 parser.add_option("-f", "--netCDF_file", dest="ncfile",
    76                   help="file to use", metavar="FILE")
     75parser.add_option("-f", "--netCDF_file", dest="ncfile", help="file to use",
     76  metavar="FILE")
    7777parser.add_option("-o", "--operation", type='choice', dest="operation",
    7878  choices=operations, help="operation to make: " + operationnames, metavar="OPER")
    79 parser.add_option("-S", "--valueS (when applicable)", dest="values",
    80                   help="values to use according to the operation", metavar="VALUES")
     79parser.add_option("-S", "--valueS", dest="values",
     80  help="values to use according to the operation (when applicable); '-h' specific help of the operation", metavar="VALUES")
    8181parser.add_option("-v", "--variable", dest="varname",
    82                   help="variable to check", metavar="VAR")
     82  help="variable to use (when applicable)", metavar="VAR")
    8383
    8484(opts, args) = parser.parse_args()
  • trunk/tools/nc_var_tools.py

    r819 r820  
    1490314903def subbasin(values, ncfile):
    1490414904    """ Function to retrieve the subbasin (all the sub-flows untila a given lon,lat)
    14905       values=[subname],[sublon],[sublat]
     14905      values= [subname],[sublon],[sublat]
    1490614906        subname: name for the subbasin ('!' for spaces)
    1490714907        sub[lon/lat]: longitude and latitude of the subbasin point
     14908      ncfile= name of the file to use (commontly ORCHIDEE's 'routing.nc')
    1490814909    """
    1490914910    fname = 'subbasin'
Note: See TracChangeset for help on using the changeset viewer.