class_docstr: Define an ellipsoid on which to solve geodesic problems.
docstr: Parameters
  ----------
  radius: float, optional
      Equatorial radius (metres). Defaults to the WGS84 semimajor axis
      (6378137.0 metres).
  
  flattening: float, optional
      Flattening of ellipsoid.  Setting flattening = 0 gives a sphere.
      Negative flattening gives a prolate ellipsoid. If flattening > 1,
      set flattening to 1/flattening.
      Defaults to the WGS84 flattening (1/298.257223563).
code: def __init__(self, radius=6378137.0, flattening=1 / 298.257223563):
      """
      Parameters
      ----------
      radius: float, optional
          Equatorial radius (metres). Defaults to the WGS84 semimajor axis
          (6378137.0 metres).
  
      flattening: float, optional
          Flattening of ellipsoid.  Setting flattening = 0 gives a sphere.
          Negative flattening gives a prolate ellipsoid. If flattening > 1,
          set flattening to 1/flattening.
          Defaults to the WGS84 flattening (1/298.257223563).
  
      """
      if flattening > 1:
          flattening = 1 / flattening
      self.geod = pyproj.Geod(a=radius, f=flattening)
      self.radius = radius
      self.flattening = flattening
  
file_path: cartopy/lib/cartopy/geodesic.py
imports: import numpy
  import pyproj
  import shapely.geometry
label_desc: Use image node_id 1 to create a new Geodesic object  with example: obj = Geodesic(radius, flattening)