class_docstr: Test case for collect_cf_dataset.
class_docstr_tok: ["Test","case","for","collect_cf_dataset","."]
docstr: Test correct storage for area with lon/lat units.
docstr_tok: ["Test","correct","storage","for","area","with","lon\/lat","units","."]
code: def test_geographic_area_coords_attrs(self):
      """Test correct storage for area with lon/lat units."""
      from satpy.cf.datasets import _collect_cf_dataset
      from satpy.tests.utils import make_fake_scene
  
      scn = make_fake_scene(
          {"ketolysis": np.arange(25).reshape(5, 5)},
          daskify=True,
          area=create_area_def(
              "mavas",
              4326,
              shape=(5, 5),
              center=(0, 0),
              resolution=(1, 1),
          ),
      )
  
      ds = _collect_cf_dataset(
          [scn["ketolysis"]], include_lonlats=False
      )
      assert ds["ketolysis"].attrs["grid_mapping"] == "mavas"
      assert (
          ds["mavas"].attrs["grid_mapping_name"] == "latitude_longitude"
      )
      assert ds["x"].attrs["units"] == "degrees_east"
      assert ds["y"].attrs["units"] == "degrees_north"
      assert ds["mavas"].attrs["longitude_of_prime_meridian"] == 0.0
      np.testing.assert_allclose(
          ds["mavas"].attrs["semi_major_axis"], 6378137.0
      )
      np.testing.assert_allclose(
          ds["mavas"].attrs["inverse_flattening"], 298.257223563
      )
  
file_path: satpy/satpy/tests/cf_tests/test_datasets.py
imports: import datetime
  import numpy
  import pytest
  import xarray
  from pyresample import AreaDefinition, create_area_def
label_desc: Use image node_id 3 for calling the TestCollectCfDataset obj's underlying member method code with example usage: obj.test_geographic_area_coords_attrs() without return types