class_docstr: Test the HRITJMAFileHandler.
class_docstr_tok: ["Test","the","HRITJMAFileHandler","."]
docstr: Test getting an AreaDefinition.
docstr_tok: ["Test","getting","an","AreaDefinition","."]
code: def test_get_area_def(self):
      """Test getting an AreaDefinition."""
      from satpy.readers.hrit_jma import (
          AREA_NAMES,
          FULL_DISK,
          NORTH_HEMIS,
          SOUTH_HEMIS,
      )
  
      cases = [
          # Non-segmented, full disk
          {
              "loff": 1375.0,
              "coff": 1375.0,
              "nlines": 2750,
              "ncols": 2750,
              "segno": 0,
              "numseg": 1,
              "area": FULL_DISK,
              "extent": (
                  -5498000.088960204,
                  -5498000.088960204,
                  5502000.089024927,
                  5502000.089024927,
              ),
          },
          # Non-segmented, northern hemisphere
          {
              "loff": 1325.0,
              "coff": 1375.0,
              "nlines": 1375,
              "ncols": 2750,
              "segno": 0,
              "numseg": 1,
              "area": NORTH_HEMIS,
              "extent": (
                  -5498000.088960204,
                  -198000.00320373234,
                  5502000.089024927,
                  5302000.085788833,
              ),
          },
          # Non-segmented, southern hemisphere
          {
              "loff": 50,
              "coff": 1375.0,
              "nlines": 1375,
              "ncols": 2750,
              "segno": 0,
              "numseg": 1,
              "area": SOUTH_HEMIS,
              "extent": (
                  -5498000.088960204,
                  -5298000.085724112,
                  5502000.089024927,
                  202000.0032684542,
              ),
          },
          # Segmented, segment #1
          {
              "loff": 1375.0,
              "coff": 1375.0,
              "nlines": 275,
              "ncols": 2750,
              "segno": 1,
              "numseg": 10,
              "area": FULL_DISK,
              "extent": (
                  -5498000.088960204,
                  4402000.071226413,
                  5502000.089024927,
                  5502000.089024927,
              ),
          },
          # Segmented, segment #7
          {
              "loff": 1375.0,
              "coff": 1375.0,
              "nlines": 275,
              "ncols": 2750,
              "segno": 7,
              "numseg": 10,
              "area": FULL_DISK,
              "extent": (
                  -5498000.088960204,
                  -2198000.035564665,
                  5502000.089024927,
                  -1098000.0177661523,
              ),
          },
      ]
      for case in cases:
          mda = self._get_mda(
              loff=case["loff"],
              coff=case["coff"],
              nlines=case["nlines"],
              ncols=case["ncols"],
              segno=case["segno"],
              numseg=case["numseg"],
          )
          reader = self._get_reader(
              mda=mda, filename_info={"area": case["area"]}
          )
          area = reader.get_area_def("some_id")
          assert area.area_extent == case["extent"]
          assert area.description == AREA_NAMES[case["area"]]["long"]
  
imports: import unittest
  from unittest import mock
  import dask.array
  import numpy
  from xarray import DataArray
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 6 for calling the TestHRITJMAFileHandler obj's underlying member method code with example usage: obj.test_get_area_def() without return types