code: def test_grid(self):
      # USGS Professional Paper 1395, pp 196--197, Table 30
      globe = ccrs.Globe(
          ellipse=None, semimajor_axis=1.0, semiminor_axis=1.0
      )
      aeqd = ccrs.AzimuthalEquidistant(
          central_latitude=0.0, central_longitude=0.0, globe=globe
      )
      geodetic = aeqd.as_geodetic()
  
      other_args = {
          "a=1.0",
          "b=1.0",
          "lon_0=0.0",
          "lat_0=0.0",
          "x_0=0.0",
          "y_0=0.0",
      }
      check_proj_params("aeqd", aeqd, other_args)
  
      assert_almost_equal(
          np.array(aeqd.x_limits), [-3.14159265, 3.14159265], decimal=6
      )
      assert_almost_equal(
          np.array(aeqd.y_limits), [-3.14159265, 3.14159265], decimal=6
      )
  
      lats, lons = np.mgrid[0:100:10, 0:100:10]
      result = aeqd.transform_points(
          geodetic, lons.ravel(), lats.ravel()
      )
  
      expected_x = np.array(
          [
              [
                  0.00000,
                  0.17453,
                  0.34907,
                  0.52360,
                  0.69813,
                  0.87266,
                  1.04720,
                  1.22173,
                  1.39626,
                  1.57080,
              ],
              [
                  0.00000,
                  0.17275,
                  0.34546,
                  0.51807,
                  0.69054,
                  0.86278,
                  1.03472,
                  1.20620,
                  1.37704,
                  1.54693,
              ],
              [
                  0.00000,
                  0.16736,
                  0.33454,
                  0.50137,
                  0.66762,
                  0.83301,
                  0.99719,
                  1.15965,
                  1.31964,
                  1.47607,
              ],
              [
                  0.00000,
                  0.15822,
                  0.31607,
                  0.47314,
                  0.62896,
                  0.78296,
                  0.93436,
                  1.08215,
                  1.22487,
                  1.36035,
              ],
              [
                  0.00000,
                  0.14511,
                  0.28959,
                  0.43276,
                  0.57386,
                  0.71195,
                  0.84583,
                  0.97392,
                  1.09409,
                  1.20330,
              ],
              [
                  0.00000,
                  0.12765,
                  0.25441,
                  0.37931,
                  0.50127,
                  0.61904,
                  0.73106,
                  0.83535,
                  0.92935,
                  1.00969,
              ],
              [
                  0.00000,
                  0.10534,
                  0.20955,
                  0.31145,
                  0.40976,
                  0.50301,
                  0.58948,
                  0.66711,
                  0.73343,
                  0.78540,
              ],
              [
                  0.00000,
                  0.07741,
                  0.15362,
                  0.22740,
                  0.29744,
                  0.36234,
                  0.42056,
                  0.47039,
                  0.50997,
                  0.53724,
              ],
              [
                  0.00000,
                  0.04281,
                  0.08469,
                  0.12469,
                  0.16188,
                  0.19529,
                  0.22399,
                  0.24706,
                  0.26358,
                  0.27277,
              ],
              [
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
              ],
          ]
      ).ravel()
      assert_almost_equal(result[:, 0], expected_x, decimal=5)
  
      expected_y = np.array(
          [
              [
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
                  0.00000,
              ],
              [
                  0.17453,
                  0.17541,
                  0.17810,
                  0.18270,
                  0.18943,
                  0.19859,
                  0.21067,
                  0.22634,
                  0.24656,
                  0.27277,
              ],
              [
                  0.34907,
                  0.35079,
                  0.35601,
                  0.36497,
                  0.37803,
                  0.39579,
                  0.41910,
                  0.44916,
                  0.48772,
                  0.53724,
              ],
              [
                  0.52360,
                  0.52606,
                  0.53355,
                  0.54634,
                  0.56493,
                  0.59010,
                  0.62291,
                  0.66488,
                  0.71809,
                  0.78540,
              ],
              [
                  0.69813,
                  0.70119,
                  0.71046,
                  0.72626,
                  0.74912,
                  0.77984,
                  0.81953,
                  0.86967,
                  0.93221,
                  1.00969,
              ],
              [
                  0.87266,
                  0.87609,
                  0.88647,
                  0.90408,
                  0.92938,
                  0.96306,
                  1.00602,
                  1.05942,
                  1.12464,
                  1.20330,
              ],
              [
                  1.04720,
                  1.05068,
                  1.06119,
                  1.07891,
                  1.10415,
                  1.13733,
                  1.17896,
                  1.22963,
                  1.28993,
                  1.36035,
              ],
              [
                  1.22173,
                  1.22481,
                  1.23407,
                  1.24956,
                  1.27137,
                  1.29957,
                  1.33423,
                  1.37533,
                  1.42273,
                  1.47607,
              ],
              [
                  1.39626,
                  1.39829,
                  1.40434,
                  1.41435,
                  1.42823,
                  1.44581,
                  1.46686,
                  1.49104,
                  1.51792,
                  1.54693,
              ],
              [
                  1.57080,
                  1.57080,
                  1.57080,
                  1.57080,
                  1.57080,
                  1.57080,
                  1.57080,
                  1.57080,
                  1.57080,
                  1.57080,
              ],
          ]
      ).ravel()
      assert_almost_equal(result[:, 1], expected_y, decimal=5)
  
file_path: cartopy/lib/cartopy/tests/crs/test_azimuthal_equidistant.py
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_array_almost_equal
  import cartopy.crs
  from .helpers import check_proj_params
label_desc: Use image node_id 4 for calling the TestAzimuthalEquidistant obj's underlying member method code with example usage: obj.test_grid() without return types