class_docstr: Eps level 1b reader for AVHRR data.
docstr: Get a calibrated dataarray.
code: def _get_calibrated_dataarray(self, key):
      """Get a calibrated dataarray."""
      if key["calibration"] not in [
          "reflectance",
          "brightness_temperature",
          "radiance",
      ]:
          raise ValueError(
              "calibration type "
              + str(key["calibration"])
              + " is not supported!"
          )
  
      mask = None
  
      channel_name = key["name"].upper()
  
      radiance_indices = {
          "1": 0,
          "2": 1,
          "3A": 2,
          "3B": 2,
          "4": 3,
          "5": 4,
      }
      array = self["SCENE_RADIANCES"][
          :, radiance_indices[channel_name], :
      ]
  
      if channel_name in ["1", "2", "3A"]:
          if key["calibration"] == "reflectance":
              array = radiance_to_refl(
                  array,
                  self[f"CH{channel_name}_SOLAR_FILTERED_IRRADIANCE"],
              )
          if channel_name == "3A":
              mask = self.three_a_mask[:, np.newaxis]
  
      if channel_name in ["3B", "4", "5"]:
          if key["calibration"] == "brightness_temperature":
              array = radiance_to_bt(
                  array,
                  self[f"CH{channel_name}_CENTRAL_WAVENUMBER"],
                  self[f"CH{channel_name}_CONSTANT1"],
                  self[f"CH{channel_name}_CONSTANT2_SLOPE"],
              )
          if channel_name == "3B":
              mask = self.three_b_mask[:, np.newaxis]
  
      dataset = create_xarray(array)
      if mask is not None:
          dataset = dataset.where(~mask)
      return dataset
  
imports: import functools
  import logging
  import dask.array
  import numpy
  import xarray
  from dask.delayed import delayed
  from pyresample.geometry import SwathDefinition
  from satpy._compat import cached_property
  from satpy._config import get_config_path
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.readers.xmlformat import XMLFormat
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 15 for calling the EPSAVHRRFile obj's underlying member method code with example usage: obj._get_calibrated_dataarray(key) and returns: dataset