Changeset 2568 in lmdz_wrf
- Timestamp:
- May 29, 2019, 10:34:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/geometry_tools.py
r2567 r2568 62 62 # p_triangle: Function to provide the polygon of a triangle from its 3 vertices 63 63 # band_lighthouse: Function to plot a lighthouse with spiral bands 64 # green_buoy1: Function to draw a green mark buoy using buoy1 64 65 # red_buoy1: Function to draw a red mark buoy using buoy1 65 66 # safewater_buoy1: Function to draw a safe water mark buoy using buoy1 … … 2191 2192 return buoy, buoysecs, buoydic 2192 2193 2193 2194 2194 def green_buoy1(height=5., width=10., bradii=1.75, bfrac=0.8, hsigns=0.3, N=300): 2195 2195 """ Function to draw a green mark buoy using buoy1 … … 2217 2217 2218 2218 Height = np.max(buoy1v[:,0]) 2219 triu = p_angle_triangle(N=N3) 2220 sign = triu*lsign 2221 buoy[N2+1:N2+2+N3,:] = sign + [Height+0.2*lsign,-lsign/2.] 2219 sign = p_prism(lsign, lsign*2, N=N3) 2220 buoy[N2+1:N2+2+N3,:] = sign + [Height+1.2*lsign,0.] 2222 2221 2223 2222 # painting it … … 2225 2224 2226 2225 buoysecs = ['buoy', 'sign', 'quarter1', 'quarter2', 'quarter3', 'quarter4'] 2227 buoydic = {'buoy': [buoy[0:N2,:],'-',' r',1.5], \2228 'sign': [buoy[N2+1:N2+N3+1,:],'-',' r',1.5]}2226 buoydic = {'buoy': [buoy[0:N2,:],'-','g',1.5], \ 2227 'sign': [buoy[N2+1:N2+N3+1,:],'-','g',1.5]} 2229 2228 2230 2229 return buoy, buoysecs, buoydic
Note: See TracChangeset
for help on using the changeset viewer.