class_docstr: Test the NcNWCSAF reader for PPS products.
class_docstr_tok: ["Test","the","NcNWCSAF","reader","for","PPS","products","."]
docstr: Test the drop of x and y coords.
docstr_tok: ["Test","the","drop","of","x","and","y","coords","."]
code: def test_drop_xycoords(self, nwcsaf_pps_cmic_filehandler):
      """Test the drop of x and y coords."""
      y_line = xr.DataArray(
          list(range(5)),
          dims=("y"),
          attrs={"long_name": "scan line number"},
      )
      x_pixel = xr.DataArray(
          list(range(10)),
          dims=("x"),
          attrs={"long_name": "pixel number"},
      )
      lat = xr.DataArray(
          np.ones((5, 10)),
          dims=("y", "x"),
          coords={"y": y_line, "x": x_pixel},
          attrs={"name": "lat", "standard_name": "latitude"},
      )
      lon = xr.DataArray(
          np.ones((5, 10)),
          dims=("y", "x"),
          coords={"y": y_line, "x": x_pixel},
          attrs={"name": "lon", "standard_name": "longitude"},
      )
      data_array_in = xr.DataArray(
          np.ones((5, 10)),
          attrs={
              "scale_factor": np.array(0, dtype=float),
              "add_offset": np.array(1, dtype=float),
          },
          dims=("y", "x"),
          coords={"lon": lon, "lat": lat, "y": y_line, "x": x_pixel},
      )
      data_array_out = nwcsaf_pps_cmic_filehandler.drop_xycoords(
          data_array_in
      )
      assert "y" not in data_array_out.coords
  
imports: import h5netcdf
  import numpy
  import pytest
  import xarray
  from satpy.readers.nwcsaf_nc import NcNWCSAF, read_nwcsaf_time
label_desc: Use image node_id 3 for calling the TestNcNWCSAFPPS obj's underlying member method code with example usage: obj.test_drop_xycoords(nwcsaf_pps_cmic_filehandler) without return types