class_docstr: Test case for CF Area.
class_docstr_tok: ["Test","case","for","CF","Area","."]
docstr: Test the conversion of an area to CF standards.
docstr_tok: ["Test","the","conversion","of","an","area","to","CF","standards","."]
code: def test_area2cf_geos_area_nolonlats(
      self, input_data_arr, include_lonlats
  ):
      """Test the conversion of an area to CF standards."""
      geos = AreaDefinition(
          area_id="geos",
          description="geos",
          proj_id="geos",
          projection={
              "proj": "geos",
              "h": 35785831.0,
              "a": 6378169.0,
              "b": 6356583.8,
          },
          width=2,
          height=2,
          area_extent=[-1, -1, 1, 1],
      )
      input_data_arr.attrs["area"] = geos
  
      res = area2cf(input_data_arr, include_lonlats=include_lonlats)
      assert len(res) == 2
      assert res[0].size == 1  # grid mapping variable
      assert res[0].name == res[1].attrs["grid_mapping"]
      if include_lonlats:
          assert "longitude" in res[1].coords
          assert "latitude" in res[1].coords
  
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 1 for calling the TestCFArea obj's underlying member method code with example usage: obj.test_area2cf_geos_area_nolonlats(input_data_arr, include_lonlats) without return types