pysal.lib.cg.linear2arcdist

pysal.lib.cg.linear2arcdist(linear_dist, radius=6371.0)[source]

Convert a linear distance in the unit sphere (R3) to an arc distance based on supplied radius

Examples

>>> pt0 = (0,0)
>>> pt1 = (180,0)
>>> d = arcdist(pt0,pt1,RADIUS_EARTH_MILES)
>>> d == linear2arcdist(2.0, radius = RADIUS_EARTH_MILES)
True