Changeset 851 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 17, 2016, 11:15:12 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r850 r851 39 39 # radius_dist: Function to generate a matrix with the distance at a given point 40 40 # significant_decomposition: Function to decompose a given number by its signifcant potencies 41 # singleline_printing_class: Function to print all the values of a given class in a single line to be parseavel 41 42 # subbasin_point: Function to provide sub-basins given a grid point following a matrix of trips 42 43 # unitsdsDate: Function to know how many units of time are from a given pair of dates … … 2978 2979 """ Function to print all the values of a given class in a single line to be parseavel 2979 2980 output as: 'singleline_printing_class[attrval]';'[attrval]';'... 2980 [attrval] = @'[attribute]'@ :'[value]('!' for spaces)2981 [attrval] = @'[attribute]'@='[value]('!' for spaces) 2981 2982 """ 2982 2983 fname='singleline_printing_class' … … 2986 2987 2987 2988 for attrcls in valscls: 2988 sline = sline + '@' + attrcls + '@ :' + str(valscls[attrcls]).replace(' ','!') + ";"2989 sline = sline + '@' + attrcls + '@=' + str(valscls[attrcls]).replace(' ','!') + ";" 2989 2990 2990 2991 print sline
Note: See TracChangeset
for help on using the changeset viewer.