Changeset 2584 in lmdz_wrf
- Timestamp:
- Jun 2, 2019, 6:30:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/geometry_tools.py
r2583 r2584 452 452 btw = False 453 453 if (valA <= val and valB > val) or (valA < val and valB >= val): btw =True 454 if (valA >= val and valB < val) or (valA > val and valB <= val): btw =True 454 455 455 456 return btw … … 655 656 if eep == N: eep = 0 656 657 658 print ip, polygon[ip,1], polygon[eep,1], xval, ':', val_between(polygon[ip,1], polygon[eep,1], xval) 657 659 if val_between(polygon[ip,1], polygon[eep,1], xval): 658 660 icut.append(ip) … … 743 745 744 746 rmpolygon = [] 747 Npts = cutpolygon.shape[0] 745 748 if keep == 'left': 746 749 for ip in range(Npts):
Note: See TracChangeset
for help on using the changeset viewer.