Locating the centroid (center of mass) of spherical polygons
Anybody finding this, make sure to check Don Hatch’s answer which is probably better. I think this will do it. You should be able to reproduce this result by just copy-pasting the code below. You will need to have the latitude and longitude data in a file called longitude and latitude.txt. You can copy-paste the … Read more