I have a set of 2d arrays that hold latitudes and longitudes for a map area, with a binary mask that denotes land (0) or ocean (1). What I am interested in doing is extracti