- Timestamp:
- Jun 16, 2016, 11:11:27 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r824 r831 14906 14906 subname: name for the subbasin ('!' for spaces) 14907 14907 sub[lon/lat]: longitude and latitude of the subbasin point 14908 searchdirection: searching direction river-up ('left': clockwise, 'right': anti-clockwise) 14908 14909 ncfile= name of the file to use (commontly ORCHIDEE's 'routing.nc') 14909 14910 """ … … 14915 14916 quit() 14916 14917 14917 arguments = '[subnmame],[sublon],[sublat] '14918 arguments = '[subnmame],[sublon],[sublat],[searchdirection]' 14918 14919 gen.check_arguments(fname, values, arguments, ',') 14919 14920 … … 14925 14926 sublon = np.float(values.split(',')[1]) 14926 14927 sublat = np.float(values.split(',')[2]) 14928 searchdirection = values.split(',')[3] 14927 14929 14928 14930 Lncfile = len(ncfile) … … 14962 14964 'matrix:', isub 14963 14965 14964 masksubbasin, subflows, subflowspt = gen.subbasin_point(outflows, isub) 14966 masksubbasin, subflows, subflowspt = gen.subbasin_point(outflows, isub, \ 14967 searchdirection) 14965 14968 14966 14969 if len(subflows.keys()) == 1: … … 15036 15039 vardef = basicvardef(newvar, 'subflow', 'reference of the sub-flow','-') 15037 15040 newvals = writing_str_nc(newvar, nsubflows, Lstr) 15041 newattr = set_attributek(newvar,'searching_direction',searchdirection,'S') 15038 15042 onewnc.sync() 15039 15043
Note: See TracChangeset
for help on using the changeset viewer.