class_docstr: Test case for CF Area.
class_docstr_tok: ["Test","case","for","CF","Area","."]
docstr: Test the conversion from pyresample area object to CF grid mapping.
  
  Projection has a corresponding CF representation but no explicit a/b.
docstr_tok: ["Test","the","conversion","from","pyresample","area","object","to","CF","grid","mapping",".","Projection","has","a","corresponding","CF","representation","but","no","explicit","a\/b","."]
code: def test_add_grid_mapping_cf_repr_no_ab(self, input_data_arr):
      """Test the conversion from pyresample area object to CF grid mapping.
  
      Projection has a corresponding CF representation but no explicit a/b.
  
      """
      h = 35785831.0
      geos = AreaDefinition(
          area_id="geos",
          description="geos",
          proj_id="geos",
          projection={
              "proj": "geos",
              "h": h,
              "datum": "WGS84",
              "ellps": "GRS80",
              "lat_0": 0,
              "lon_0": 0,
          },
          width=2,
          height=2,
          area_extent=[-1, -1, 1, 1],
      )
      geos_expected = xr.DataArray(
          data=0,
          attrs={
              "perspective_point_height": h,
              "latitude_of_projection_origin": 0,
              "longitude_of_projection_origin": 0,
              "grid_mapping_name": "geostationary",
              "reference_ellipsoid_name": "WGS 84",
              # 'semi_major_axis': 6378137.0,
              # 'semi_minor_axis': 6356752.314,
              # 'sweep_angle_axis': None,
          },
      )
  
      input_data_arr.attrs["area"] = geos
      new_ds, grid_mapping = _add_grid_mapping(input_data_arr)
  
      assert new_ds.attrs["grid_mapping"] == "geos"
      _gm_matches(grid_mapping, geos_expected)
  
file_path: satpy/satpy/tests/cf_tests/test_area.py
imports: import dask.array
  import numpy
  import pytest
  import xarray
  from pyresample import AreaDefinition, SwathDefinition
  from satpy.cf.area import _add_grid_mapping, area2cf
label_desc: Use image node_id 6 for calling the TestCFArea obj's underlying member method code with example usage: obj.test_add_grid_mapping_cf_repr_no_ab(input_data_arr) without return types