How accurate i pythons is_land? Alternatives?

المشرف العام

Administrator
طاقم الإدارة
I was planning to use Pythons is_land function, to differentiate between land and sea. However, after some inspection, I have major concerns in the accuracy. I cant find anything about this in the documentation, so I hoped anyone here could help me.

I initiate the basemap with high resolution, and a low area thresh-hold to help differentiate:

map = Basemap(projection='merc', resolution = 'h', area_thresh=0.001)When I try this function, It returns true even though I choose points clearly not on land:

>>> map.is_land(39.784004,3.345337)True>>> map.is_land(39.789808,3.3395)True>>> map.is_land(39.799041,3.332291)True>>> map.is_land(39.863371,3.346367)TrueThe three last ones is out at sea.

Anyone here that has used this function, and maybe got some tips to how I can make it more accurate, or if there is some (preferably) python substitution, or other open source programmable solution to check if a number of points is at land or not.



أكثر...
 
أعلى