class_docstr: Reader for HRPT Minor Frame, 10 bits data expanded to 16 bits.
docstr: Calibrate a thermal channel.
docstr_tok: ["Calibrate","a","thermal","channel","."]
code: def calibrate_thermal_channel(self, data, key):
      """Calibrate a thermal channel."""
      from pygac.calibration import calibrate_thermal
  
      line_numbers = (
          np.round(
              (self.times - self.times[-1])
              / np.timedelta64(166666667, "ns")
          )
      ).astype(int)
      line_numbers -= line_numbers[0]
      prt, ict, space = self.telemetry
      index = _get_channel_index(key)
      data = calibrate_thermal(
          data,
          prt,
          ict[:, index - 2],
          space[:, index],
          line_numbers,
          index + 1,
          self.calibrator,
      )
      return data
  
imports: import logging
  from datetime import datetime
  import dask.array
  import numpy
  import xarray
  from geotiepoints import SatelliteInterpolator
  from pyorbital.geoloc import compute_pixels, get_lonlatalt
  from pyorbital.geoloc_instrument_definitions import avhrr
  from pyorbital.orbital import Orbital
  from satpy._compat import cached_property
  from satpy.readers.aapp_l1b import get_avhrr_lac_chunks
  from satpy.readers.file_handlers import BaseFileHandler
label_desc: Use image node_id 12 for calling the HRPTFile obj's underlying member method code with example usage: obj.calibrate_thermal_channel(data, key) and returns: data