class_docstr: Reader for HRPT Minor Frame, 10 bits data expanded to 16 bits.
docstr: Calibrate a solar channel.
docstr_tok: ["Calibrate","a","solar","channel","."]
code: def calibrate_solar_channel(self, data, key):
      """Calibrate a solar channel."""
      from pygac.calibration import calibrate_solar
  
      julian_days = (
          np.datetime64(self.start_time)
          - np.datetime64(str(self.year) + "-01-01T00:00:00")
      ) / np.timedelta64(1, "D")
      data = calibrate_solar(
          data,
          _get_channel_index(key),
          self.year,
          julian_days,
          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 13 for calling the HRPTFile obj's underlying member method code with example usage: obj.calibrate_solar_channel(data, key) and returns: data