Changeset 1418 in lmdz_wrf for trunk/tools
- Timestamp:
- Jan 19, 2017, 12:18:46 AM (8 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing.py
r1417 r1418 3907 3907 [color]: color of the vectors 3908 3908 'singlecol'@[colorn]: all the vectors same color ('auto': for 'red') 3909 'wind'@[colorbar] @[sminv],[smaxv]: color of the vectors according to wind speed sqrt(u^2+v^2) and given [colorbar]3909 'wind'@[colorbar],[sminv]|[smaxv]: color of the vectors according to wind speed sqrt(u^2+v^2) and given [colorbar] 3910 3910 all vectors the same length 3911 3911 [smin/axv]: minimum and maximum value for the shading or: … … 3920 3920 percentile_(100-val)-median) 3921 3921 3922 '3rdvar'@[colorbar]@[varn]@[units] @[sminv],[smaxv]: color of the vectors according to a 3rd variable (to be added at -v) and given [colorbar]3922 '3rdvar'@[colorbar]@[varn]@[units],[sminv]|[smaxv]: color of the vectors according to a 3rd variable (to be added at -v) and given [colorbar] 3923 3923 all vectors the same length 3924 3924 [length]: length of the wind vectors ('auto', for 9) … … 4056 4056 colorv = np.sqrt(uwvals**2 + vwvals**2) 4057 4057 # Min/Max colorbar 4058 shadminmax = colorvals.split('@')[2] 4059 shading_nx = shadminmax.split(',') 4058 shadminmax = vecvals.split(',')[3] 4059 shading_nx = shadminmax.split('|') 4060 print ' Lluis shading_nx:', shading_nx 4060 4061 elif coln == '3rdvar': 4061 4062 if len(varn.split(',')) != 3: … … 4069 4070 colorvals = colorvals + '@' + stdvn + '@' + unitsvn 4070 4071 # Min/Max colorbar 4071 shadminmax = colorvals.split('@')[4]4072 shading_nx = shadminmax.split(' ,')4072 shadminmax = vecvals.split(',')[5] 4073 shading_nx = shadminmax.split('|') 4073 4074 else: 4074 4075 print errormsg -
trunk/tools/drawing_tools.py
r1417 r1418 6927 6927 uvals[::yfreq,::xfreq], vvals[::yfreq,::xfreq], \ 6928 6928 veccolor[::yfreq,::xfreq], cmap=plt.get_cmap(vcolor), pivot='middle', \ 6929 vmin=vsend[0], vmax=vsend[1])6929 clim = vsend) 6930 6930 cbar = plt.colorbar() 6931 6931
Note: See TracChangeset
for help on using the changeset viewer.