Changeset 2530 in lmdz_wrf
- Timestamp:
- May 12, 2019, 12:01:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/geometry_tools.py
r2527 r2530 1245 1245 1246 1246 Ntower = iip-1 1247 lighthousesecs = ['tower']1247 lighthousesecs.append('tower') 1248 1248 lighthousedic['tower'] = [lighthouse[0:iip-1], '-', 'k', 1.5] 1249 1249 1250 1250 # Left light 1251 p1 = np.array([height, -width /2.])1252 p2 = np.array([height+hlight, 0.])1251 p1 = np.array([height, -width*0.8/2.]) 1252 p2 = np.array([height+hlight, -width*0.8/2.]) 1253 1253 lighthouse[iip:iip+Nsec,:] = circ_sec(p1, p2, 3*hlight, Nang=Nsec) 1254 1254 iip = iip + Nsec 1255 1255 1256 # Top Light 1257 p1=np.array([height+hlight, width*0.8/2.]) 1258 p2=np.array([height+hlight, -width*0.8/2.]) 1259 lighthouse[iip:iip+Nsec,:] = circ_sec(p1, p2, 3*width, pos='left', Nang=Nsec) 1260 iip = iip + Nsec + 1 1261 1256 1262 # Right light 1257 p1 = np.array([height+hlight, 0.])1258 p2 = np.array([height, width /2.])1263 p1 = np.array([height+hlight, width*0.8/2.]) 1264 p2 = np.array([height, width*0.8/2.]) 1259 1265 lighthouse[iip:iip+Nsec,:] = circ_sec(p1, p2, 3*hlight, Nang=Nsec) 1260 1266 iip = iip + Nsec 1261 1267 1262 1268 # Base Light 1263 p1=np.array([height, width /2.])1264 p2=np.array([height, -width /2.])1269 p1=np.array([height, width*0.8/2.]) 1270 p2=np.array([height, -width*0.8/2.]) 1265 1271 lighthouse[iip:iip+Nsec,:] = circ_sec(p1, p2, 3*width, pos='left', Nang=Nsec) 1266 1272 iip = iip + Nsec + 1 1267 lighthousesecs = ['light']1268 lighthousedic['light'] = [lighthouse[Ntower+1:iip-1], '-', '# AAAA00', 1.5]1273 lighthousesecs.append('light') 1274 lighthousedic['light'] = [lighthouse[Ntower+1:iip-1], '-', '#EEEE00', 1.5] 1269 1275 1270 1276 # Spiral bands 1271 1277 hb = height/(2.*bands) 1272 Nsec2 = (N - Nsec* 7- 3)/bands1278 Nsec2 = (N - Nsec*8 - 3)/bands 1273 1279 for ib in range(bands-1): 1274 1280 iband = iip … … 1301 1307 lighthouse[iip:iip+Nsec,:] = circ_sec(p1, p2, 3*width, pos='left', Nang=Nsec) 1302 1308 iip = iip + Nsec + 1 1303 lighthousesecs = [bandS]1304 lighthousedic[bandS] = [lighthouse[iband:iip-1], '-', '# 160016', 2.]1309 lighthousesecs.append(bandS) 1310 lighthousedic[bandS] = [lighthouse[iband:iip-1], '-', '#6408AA', 2.] 1305 1311 1306 1312 ib = bands-1 … … 1335 1341 p2 = np.array([hb*ib*2, -width/2.]) 1336 1342 lighthouse[iip:iip+Nsec,:] = circ_sec(p1, p2, 3*width, pos='left', Nang=Nsec) 1337 lighthousesecs = [bandS]1338 lighthousedic[bandS] = [lighthouse[iband:iip-1], '-', '# 160016', 2.]1343 lighthousesecs.append(bandS) 1344 lighthousedic[bandS] = [lighthouse[iband:iip-1], '-', '#6408AA', 2.] 1339 1345 1340 1346 lighthouse = ma.masked_equal(lighthouse, gen.fillValueF)
Note: See TracChangeset
for help on using the changeset viewer.