class_docstr: Test cases for CF spatial dimension and coordinates.
class_docstr_tok: ["Test","cases","for","CF","spatial","dimension","and","coordinates","."]
docstr: Create test dataset.
docstr_tok: ["Create","test","dataset","."]
code: def datasets(self):
      """Create test dataset."""
      data = [[75, 2], [3, 4]]
      y = [1, 2]
      x = [1, 2]
      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],
      )
      datasets = {
          "var1": xr.DataArray(
              data=data, dims=("y", "x"), coords={"y": y, "x": x}
          ),
          "var2": xr.DataArray(
              data=data, dims=("y", "x"), coords={"y": y, "x": x}
          ),
          "lat": xr.DataArray(
              data=data, dims=("y", "x"), coords={"y": y, "x": x}
          ),
          "lon": xr.DataArray(
              data=data, dims=("y", "x"), coords={"y": y, "x": x}
          ),
      }
      datasets["lat"].attrs["standard_name"] = "latitude"
      datasets["var1"].attrs["standard_name"] = "dummy"
      datasets["var2"].attrs["standard_name"] = "dummy"
      datasets["var2"].attrs["area"] = geos
      datasets["var1"].attrs["area"] = geos
      datasets["lat"].attrs["name"] = "lat"
      datasets["var1"].attrs["name"] = "var1"
      datasets["var2"].attrs["name"] = "var2"
      datasets["lon"].attrs["name"] = "lon"
      return datasets
  
file_path: satpy/satpy/tests/cf_tests/test_coords.py
imports: import logging
  import numpy
  import pytest
  import xarray
  from pyresample import AreaDefinition
label_desc: Use image node_id 5 for calling the TestCFcoords obj's underlying member method code with example usage: obj.datasets() and returns: datasets