I would like to create a mask of a grid where points are evaluated as either 1
's or 0
's depending on if they lay outside of an irregular (i.e. not rectangular) polygon.
I have a set of high-latitude coordinates in lat/lon that define the boundary of an area I would like to make a polygon.
From this polygon I would then like to evaluate another set of lat/lon points as to whether they lay within the polygon.
Is there a library best suited for creating such a polygon (given a list of lats/lons that define it)? shapely
appears to be geared towards 2D/projected points.
What would be the best method of evaluating other points as to whether they lie within or out of this polygon?
Thanks!
Best Answer
So... my solution was as follows. Thank you Michael for the response and to others who might have other solutions.