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 fill_value_color added.
docstr_tok: ["Test","that","get_dataset","(",")","returns","scaled","palette_meanings","with","fill_value_color","added","."]
code: def test_get_palette_fill_value_color_added(
      self, nwcsaf_pps_ctth_filehandler
  ):
      """Test that get_dataset() returns scaled palette_meanings with fill_value_color added."""
      dsid = {"name": "ctth_alti_pal"}
  
      info = dict(
          name="ctth_alti_pal",
          file_type="nc_nwcsaf_ctth",
          scale_offset_dataset="ctth_alti",
      )
  
      res = nwcsaf_pps_ctth_filehandler.get_dataset(dsid, info)
      res.attrs["palette_meanings"]
      palette_meanings = np.array([0, 500, 1000, 1500, 65535])
      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 6 for calling the TestNcNWCSAFPPS obj's underlying member method code with example usage: obj.test_get_palette_fill_value_color_added(nwcsaf_pps_ctth_filehandler) without return types