class_docstr: Test the nwcsaf msg reader.
class_docstr_tok: ["Test","the","nwcsaf","msg","reader","."]
docstr: Get the area definition.
docstr_tok: ["Get","the","area","definition","."]
code: def test_get_area_def(self):
      """Get the area definition."""
      from pyproj import CRS
  
      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)
  
      area_def = test.get_area_def(dsid)
  
      aext_res = AREA_DEF_DICT["area_extent"]
      for i in range(4):
          assert area_def.area_extent[i] == pytest.approx(
              aext_res[i], abs=1e-4
          )
  
      expected_crs = CRS(AREA_DEF_DICT["proj_dict"])
      assert expected_crs == area_def.crs
  
      assert AREA_DEF_DICT["x_size"] == area_def.width
      assert AREA_DEF_DICT["y_size"] == area_def.height
  
      assert AREA_DEF_DICT["area_id"] == area_def.area_id
  
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 2 for calling the TestH5NWCSAF obj's underlying member method code with example usage: obj.test_get_area_def() without return types