spheres.utils.polygon_area

spheres.utils.polygon_area(phis, thetas, radius=1)[source]

Computes area of spherical polygon. Returns result in ratio of the sphere’s area if the radius is specified. Otherwise, in the units of provided radius.

Thanks to https://stackoverflow.com/questions/4681737/how-to-calculate-the-area-of-a-polygon-on-the-earths-surface-using-python

Parameters
  • phis (list) –

  • thetas (list) –

  • radius (float) –

Returns

area

Return type

float