class_docstr: Test the NcNWCSAF reader for PPS products.
class_docstr_tok: ["Test","the","NcNWCSAF","reader","for","PPS","products","."]
docstr: Test that get_dataset() returns scaled palette_meanings with another dataset as scaling source.
docstr_tok: ["Test","that","get_dataset","(",")","returns","scaled","palette_meanings","with","another","dataset","as","scaling","source","."]
code: def test_get_dataset_scales_and_offsets_palette_meanings_using_other_dataset(
      self, nwcsaf_pps_cpp_filehandler
  ):
      """Test that get_dataset() returns scaled palette_meanings with another dataset as scaling source."""
      dsid = {"name": "cpp_cot_pal"}
  
      info = dict(
          name="cpp_cot_pal",
          file_type="nc_nwcsaf_cpp",
          scale_offset_dataset="cot",
      )
  
      res = nwcsaf_pps_cpp_filehandler.get_dataset(dsid, info)
      palette_meanings = np.array(COT_PALETTE_MEANINGS.split()).astype(
          int
      )
      np.testing.assert_allclose(
          res.attrs["palette_meanings"],
          palette_meanings * COT_SCALE + COT_OFFSET,
      )
  
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 5 for calling the TestNcNWCSAFPPS obj's underlying member method code with example usage: obj.test_get_dataset_scales_and_offsets_palette_meanings_using_other_dataset(nwcsaf_pps_cpp_filehandler) without return types