class_docstr: GOES HRIT format reader.
class_docstr_tok: ["GOES","HRIT","format","reader","."]
docstr: Calibrate *data*.
docstr_tok: ["Calibrate","*","data","*","."]
code: def _calibrate(self, data):
      """Calibrate *data*."""
      idx = self.mda["calibration_parameters"]["indices"]
      val = self.mda["calibration_parameters"]["values"]
      data.data = da.where(data.data == 0, np.nan, data.data)
      ddata = data.data.map_blocks(np.interp, idx, val, dtype=val.dtype)
      res = xr.DataArray(
          ddata, dims=data.dims, attrs=data.attrs, coords=data.coords
      )
      res = res.clip(min=0)
      units = {b"percent": "%", b"degree Kelvin": "K"}
      unit = self.mda["calibration_parameters"][b"_UNIT"]
      res.attrs["units"] = units.get(unit, unit)
      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 5 for calling the HRITGOESFileHandler obj's underlying member method code with example usage: obj._calibrate(data) and returns: res