Changeset 2557 in lmdz_wrf
- Timestamp:
- May 25, 2019, 7:10:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/geometry_tools.py
r2556 r2557 1721 1721 buoy[N2+N32+2:N,:] = trib + [bottsigns+0.9*lsign,0.] 1722 1722 1723 # painting it 1724 Height = np.max(buoy1v[:,0]) 1725 1726 Ncut, halfdown = cut_ypolygon(buoy1v, yval=Height/3., keep='bottom') 1727 Ncut, halfbtw = cut_between_ypolygon(buoy1v, yval1=Height/3., yval2=Height*2./3.) 1728 Ncut, halfup = cut_ypolygon(buoy1v, yval=Height*2./3., keep='above') 1729 1723 1730 buoy = ma.masked_equal(buoy, gen.fillValueF) 1724 1731 … … 1726 1733 buoydic = {'buoy': [buoy[0:N2,:],'-','k',1.5], \ 1727 1734 'sign1': [buoy[N2+1:N2+N32+1,:],'-','k',1.5], \ 1728 'sign2': [buoy[N2+N32+2:N,:],'-','k',1.5]} 1735 'sign2': [buoy[N2+N32+2:N,:],'-','k',1.5], \ 1736 'third1y': [halfup, '-', '#FFFF00', 1.], 'thirdk': [halfbtw, '-', 'k', 1.], \ 1737 'third2y': [halfdown, '-', '#FFFF00', 1.]} 1729 1738 1730 1739 return buoy, buoysecs, buoydic
Note: See TracChangeset
for help on using the changeset viewer.