{"library":"spherical-geometry","title":"spherical-geometry","type":"library","description":"Python tools for spherical geometry, providing vectorized operations on the sphere using NumPy. Current version 1.4.0, released approximately monthly.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install spherical-geometry"],"cli":null},"imports":["from spherical_geometry import Arc","from spherical_geometry import GreatCircle"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/spacetelescope/spherical_geometry","docs":"http://spherical-geometry.readthedocs.io/","changelog":null,"pypi":"https://pypi.org/project/spherical-geometry/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from spherical_geometry import Arc, GreatCircle\n\n# Define two points on the sphere (longitude, latitude in radians)\npoint_a = (0.0, 0.0)\npoint_b = (1.0, 0.5)\n\n# Create a great circle arc\narc = Arc(point_a, point_b)\nprint(f\"Arc length: {arc.length()}\")\n\n# Compute intersection of two great circles\ngc1 = GreatCircle(point_a, point_b)\ngc2 = GreatCircle((0.5, 0.2), (1.2, 0.8))\nintersections = gc1.intersections(gc2)\nprint(f\"Intersection points: {intersections}\")","lang":"python","description":"Basic usage of Arc and GreatCircle for spherical geometry calculations.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}