class_docstr: Test the nwcsaf msg reader.
class_docstr_tok: ["Test","the","nwcsaf","msg","reader","."]
docstr: Retrieve datasets from a NWCSAF msgv2013 hdf5 file.
docstr_tok: ["Retrieve","datasets","from","a","NWCSAF","msgv2013","hdf5","file","."]
code: def test_get_dataset(self):
      """Retrieve datasets from a NWCSAF msgv2013 hdf5 file."""
      from satpy.readers.nwcsaf_msg2013_hdf5 import Hdf5NWCSAF
      from satpy.tests.utils import make_dataid
  
      filename_info = {}
      filetype_info = {}
      dsid = make_dataid(name="ct")
      test = Hdf5NWCSAF(self.filename_ct, filename_info, filetype_info)
      ds = test.get_dataset(dsid, {"file_key": "CT"})
      assert ds.shape == (1856, 3712)
      assert ds.dtype == np.uint8
      np.testing.assert_allclose(
          ds.data[1000:1010, 1000:1010].compute(), CTYPE_TEST_FRAME
      )
  
      filename_info = {}
      filetype_info = {}
      dsid = make_dataid(name="ctth_alti")
      test = Hdf5NWCSAF(
          self.filename_ctth, filename_info, filetype_info
      )
      ds = test.get_dataset(dsid, {"file_key": "CTTH_HEIGHT"})
      assert ds.shape == (1856, 3712)
      assert ds.dtype == np.float32
      np.testing.assert_allclose(
          ds.data[1000:1010, 1000:1010].compute(),
          CTTH_HEIGHT_TEST_FRAME_RES,
      )
  
      filename_info = {}
      filetype_info = {}
      dsid = make_dataid(name="ctth_pres")
      test = Hdf5NWCSAF(
          self.filename_ctth, filename_info, filetype_info
      )
      ds = test.get_dataset(dsid, {"file_key": "CTTH_PRESS"})
      assert ds.shape == (1856, 3712)
      assert ds.dtype == np.float32
      np.testing.assert_allclose(
          ds.data[1000:1010, 1000:1010].compute(),
          CTTH_PRESSURE_TEST_FRAME_RES,
      )
  
      filename_info = {}
      filetype_info = {}
      dsid = make_dataid(name="ctth_tempe")
      test = Hdf5NWCSAF(
          self.filename_ctth, filename_info, filetype_info
      )
      ds = test.get_dataset(dsid, {"file_key": "CTTH_TEMPER"})
      assert ds.shape == (1856, 3712)
      assert ds.dtype == np.float32
      np.testing.assert_allclose(
          ds.data[1000:1010, 1000:1010].compute(),
          CTTH_TEMPERATURE_TEST_FRAME_RES,
      )
  
file_path: satpy/satpy/tests/reader_tests/test_nwcsaf_msg.py
imports: import os
  import tempfile
  import unittest
  from collections import OrderedDict
  import h5py
  import numpy
  import pytest
  from satpy.tests.reader_tests.utils import fill_h5
label_desc: Use image node_id 3 for calling the TestH5NWCSAF obj's underlying member method code with example usage: obj.test_get_dataset() without return types