I got the corner geo coordinates from a xml product file of a Sentinel-1 GRD SAR image. When looping through the pixels of the image I wish to check whether it represents land or sea.
I figured I could calculate the corresponding longtitude and latitude by using the corner longtitudes and latitudes and do the check. Looking into
mpl_toolkits, i found an attribute
.is_land(x, y) but this require a map projection which slows it down, which I want to avoid.
Is there an efficient and fast way to check whether a longtitude and latitude is land or ocean in python 3.x?