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 and offseted data.
docstr_tok: ["Test","that","get_dataset","(",")","returns","scaled","and","offseted","data","."]
code: def test_get_dataset_scales_and_offsets(
      self, nwcsaf_pps_cpp_filehandler
  ):
      """Test that get_dataset() returns scaled and offseted data."""
      dsid = {"name": "cpp_cot"}
  
      info = dict(name="cpp_cot", file_type="nc_nwcsaf_cpp")
  
      res = nwcsaf_pps_cpp_filehandler.get_dataset(dsid, info)
      np.testing.assert_allclose(
          res, COT_ARRAY * 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 4 for calling the TestNcNWCSAFPPS obj's underlying member method code with example usage: obj.test_get_dataset_scales_and_offsets(nwcsaf_pps_cpp_filehandler) without return types