in3Utils.geoTrans.pointInPolygon
- pointInPolygon(demHeader, points, Line, radius)[source]
find particles within a polygon
- Parameters
demHeader (dict) – dem header dictionary
points (dict) – points to check
Line (dict) – line dictionary
radius (float) – threshold val that decides if a point is in the polygon, on the line or very close but outside
- Returns
Mask – Mask of particles to keep
- Return type
1D numpy array