Changeset 2568 in lmdz_wrf


Ignore:
Timestamp:
May 29, 2019, 10:34:38 PM (6 years ago)
Author:
lfita
Message:

Adding:

  • green_buoy1': Function to draw a green mark buoy using buoy1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/geometry_tools.py

    r2567 r2568  
    6262# p_triangle: Function to provide the polygon of a triangle from its 3 vertices
    6363# band_lighthouse: Function to plot a lighthouse with spiral bands
     64# green_buoy1: Function to draw a green mark buoy using buoy1
    6465# red_buoy1: Function to draw a red mark buoy using buoy1
    6566# safewater_buoy1: Function to draw a safe water mark buoy using buoy1
     
    21912192    return buoy, buoysecs, buoydic
    21922193
    2193 
    21942194def green_buoy1(height=5., width=10., bradii=1.75, bfrac=0.8, hsigns=0.3, N=300):
    21952195    """ Function to draw a green mark buoy using buoy1
     
    22172217   
    22182218    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.]
    22222221
    22232222    # painting it
     
    22252224
    22262225    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]}
    22292228
    22302229    return buoy, buoysecs, buoydic
Note: See TracChangeset for help on using the changeset viewer.