class_docstr: Tests for the AHI HSD file handler.
class_docstr_tok: ["Tests","for","the","AHI","HSD","file","handler","."]
docstr: Test read_bands on real data.
docstr_tok: ["Test","read_bands","on","real","data","."]
code: def test_read_band_from_actual_file(self, hsd_file_jp01):
      """Test read_bands on real data."""
      filename_info = {"segment": 1, "total_segments": 1}
      filetype_info = {"file_type": "blahB01"}
      fh = AHIHSDFileHandler(
          hsd_file_jp01, filename_info, filetype_info
      )
      key = {"name": "B01", "calibration": "counts", "resolution": 1000}
      import dask
  
      with dask.config.set({"array.chunk-size": "32MiB"}):
          with warnings.catch_warnings():
              # The header isn't valid
              warnings.filterwarnings(
                  "ignore",
                  category=UserWarning,
                  message=r"Actual .* header size",
              )
              data = fh.read_band(
                  key,
                  {
                      "units": "%",
                      "standard_name": "toa_bidirectional_reflectance",
                      "wavelength": 2,
                      "resolution": 1000,
                  },
              )
          assert data.chunks == ((1100,) * 10, (1100,) * 10)
          assert data.dtype == data.compute().dtype
          assert data.dtype == np.float32
  
imports: from __future__ import annotations
  import contextlib
  import unittest
  import warnings
  from datetime import datetime
  from typing import Any, Dict
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from satpy.readers.ahi_hsd import AHIHSDFileHandler
  from satpy.readers.utils import get_geostationary_mask
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 5 for calling the TestAHIHSDFileHandler obj's underlying member method code with example usage: obj.test_read_band_from_actual_file(hsd_file_jp01) without return types