- Timestamp:
- Jun 12, 2016, 10:11:24 PM (8 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var.py
r818 r820 73 73 74 74 parser = OptionParser() 75 parser.add_option("-f", "--netCDF_file", dest="ncfile", 76 help="file to use",metavar="FILE")75 parser.add_option("-f", "--netCDF_file", dest="ncfile", help="file to use", 76 metavar="FILE") 77 77 parser.add_option("-o", "--operation", type='choice', dest="operation", 78 78 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 tothe operation", metavar="VALUES")79 parser.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") 81 81 parser.add_option("-v", "--variable", dest="varname", 82 help="variable to check", metavar="VAR")82 help="variable to use (when applicable)", metavar="VAR") 83 83 84 84 (opts, args) = parser.parse_args() -
trunk/tools/nc_var_tools.py
r819 r820 14903 14903 def subbasin(values, ncfile): 14904 14904 """ Function to retrieve the subbasin (all the sub-flows untila a given lon,lat) 14905 values= [subname],[sublon],[sublat]14905 values= [subname],[sublon],[sublat] 14906 14906 subname: name for the subbasin ('!' for spaces) 14907 14907 sub[lon/lat]: longitude and latitude of the subbasin point 14908 ncfile= name of the file to use (commontly ORCHIDEE's 'routing.nc') 14908 14909 """ 14909 14910 fname = 'subbasin'
Note: See TracChangeset
for help on using the changeset viewer.