class_docstr: GOES HRIT format reader.
class_docstr_tok: ["GOES","HRIT","format","reader","."]
docstr: Calibrate the data.
docstr_tok: ["Calibrate","the","data","."]
code: def calibrate(self, data, calibration):
      """Calibrate the data."""
      logger.debug("Calibration")
      tic = datetime.now()
      if calibration == "counts":
          return data
      if calibration == "reflectance":
          res = self._calibrate(data)
      elif calibration == "brightness_temperature":
          res = self._calibrate(data)
      else:
          raise NotImplementedError(
              "Don't know how to calibrate to " + str(calibration)
          )
  
      logger.debug("Calibration time " + str(datetime.now() - tic))
      return res
  
imports: import logging
  from datetime import datetime, timedelta
  import dask.array
  import numpy
  import xarray
  from satpy._compat import ArrayLike
  from satpy.readers._geos_area import get_area_definition, get_area_extent, get_geos_area_naming
  from satpy.readers.eum_base import recarray2dict, time_cds_short
  from satpy.readers.hrit_base import HRITFileHandler, ancillary_text, annotation_header, base_hdr_map, image_data_function
label_desc: Use image node_id 4 for calling the HRITGOESFileHandler obj's underlying member method code with example usage: obj.calibrate(data, calibration) and returns: res, data