class_docstr: Test cases for CF spatial dimension and coordinates.
class_docstr_tok: ["Test","cases","for","CF","spatial","dimension","and","coordinates","."]
docstr: Test that the x and y coordinates are unique.
docstr_tok: ["Test","that","the","x","and","y","coordinates","are","unique","."]
code: def test_check_unique_projection_coords(self):
      """Test that the x and y coordinates are unique."""
      from satpy.cf.coords import check_unique_projection_coords
  
      dummy = [[1, 2], [3, 4]]
      datas = {
          "a": xr.DataArray(
              data=dummy,
              dims=("y", "x"),
              coords={"y": [1, 2], "x": [3, 4]},
          ),
          "b": xr.DataArray(
              data=dummy,
              dims=("y", "x"),
              coords={"y": [1, 2], "x": [3, 4]},
          ),
          "n": xr.DataArray(
              data=dummy,
              dims=("v", "w"),
              coords={"v": [1, 2], "w": [3, 4]},
          ),
      }
      check_unique_projection_coords(datas)
  
      datas["c"] = xr.DataArray(
          data=dummy, dims=("y", "x"), coords={"y": [1, 3], "x": [3, 4]}
      )
      with pytest.raises(
          ValueError, match="must have identical projection coordinates"
      ):
          check_unique_projection_coords(datas)
  
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 1 for calling the TestCFcoords obj's underlying member method code with example usage: obj.test_check_unique_projection_coords() without return types