I have a list of coordinates from recorded sightings for a plant species.
I am extracting mean annual temperature from a map at each coordinate (using raster::extract
).
But I now realise that a few coordinates are in the ocean due to some sampling error (e.g. they are just off the coast), causing the extracted values from maps to be inaccurate, because the map only gives information about terrestrial sites.
Is there a quick way of removing ocean coordinates form the list of coordinates, or ignoring ocean coordinates when extracting temperature values from the map? (I have to do this for many species and environmental variables)
Thank you