class_docstr: Test the HRITJMAFileHandler.
class_docstr_tok: ["Test","the","HRITJMAFileHandler","."]
docstr: Create metadata dict like HRITFileHandler would do it.
docstr_tok: ["Create","metadata","dict","like","HRITFileHandler","would","do","it","."]
code: def _get_mda(
      self,
      loff=5500.0,
      coff=5500.0,
      nlines=11000,
      ncols=11000,
      segno=0,
      numseg=1,
      vis=True,
      platform="Himawari-8",
  ):
      """Create metadata dict like HRITFileHandler would do it."""
      if vis:
          idf = (
              b"$HALFTONE:=16\r_NAME:=VISIBLE\r_UNIT:=ALBEDO(%)\r"
              b"0:=-0.10\r1023:=100.00\r65535:=100.00\r"
          )
      else:
          idf = (
              b"$HALFTONE:=16\r_NAME:=INFRARED\r_UNIT:=KELVIN\r"
              b"0:=329.98\r1023:=130.02\r65535:=130.02\r"
          )
      proj_h8 = b"GEOS(140.70)                    "
      proj_mtsat2 = b"GEOS(145.00)                    "
      proj_name = proj_h8 if platform == "Himawari-8" else proj_mtsat2
      return {
          "image_segm_seq_no": segno,
          "total_no_image_segm": numseg,
          "projection_name": proj_name,
          "projection_parameters": {
              "a": 6378169.00,
              "b": 6356583.80,
              "h": 35785831.00,
          },
          "cfac": 10233128,
          "lfac": 10233128,
          "coff": coff,
          "loff": loff,
          "number_of_columns": ncols,
          "number_of_lines": nlines,
          "image_data_function": idf,
          "image_observation_time": self._get_acq_time(nlines),
      }
  
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 3 for calling the TestHRITJMAFileHandler obj's underlying member method code with example usage: obj._get_mda(loff, coff, nlines, ncols, segno, numseg, vis, platform) and returns: dict