class_docstr: Test case for various AHI calibration types.
class_docstr_tok: ["Test","case","for","various","AHI","calibration","types","."]
docstr: Test default in-file calibration modes.
docstr_tok: ["Test","default","in-file","calibration","modes","."]
code: def test_default_calibrate(self, *mocks):
      """Test default in-file calibration modes."""
      self.setUp()
      # Counts
      assert self.fh.calibrate(data=123, calibration="counts") == 123
  
      # Radiance
      rad_exp = np.array([[15.2, 11.5], [7.8, -3.3]])
      rad = self.fh.calibrate(data=self.counts, calibration="radiance")
      assert np.allclose(rad, rad_exp)
  
      # Brightness Temperature
      bt_exp = np.array(
          [[330.978979, 310.524688], [285.845017, np.nan]]
      )
      bt = self.fh.calibrate(
          data=self.counts, calibration="brightness_temperature"
      )
      np.testing.assert_allclose(bt, bt_exp)
  
      # Reflectance
      refl_exp = np.array([[2.92676, 2.214325], [1.50189, 0.0]])
      refl = self.fh.calibrate(
          data=self.counts, calibration="reflectance"
      )
      assert np.allclose(refl, refl_exp)
  
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 2 for calling the TestAHICalibration obj's underlying member method code with example usage: obj.test_default_calibrate() without return types