Changeset 2557 in lmdz_wrf


Ignore:
Timestamp:
May 25, 2019, 7:10:11 PM (6 years ago)
Author:
lfita
Message:

Adding filling `east_buoy1'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/geometry_tools.py

    r2556 r2557  
    17211721    buoy[N2+N32+2:N,:] = trib + [bottsigns+0.9*lsign,0.]
    17221722
     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
    17231730    buoy = ma.masked_equal(buoy, gen.fillValueF)
    17241731
     
    17261733    buoydic = {'buoy': [buoy[0:N2,:],'-','k',1.5],                                   \
    17271734      '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.]}
    17291738
    17301739    return buoy, buoysecs, buoydic
Note: See TracChangeset for help on using the changeset viewer.