class_docstr: Writer to produce MITIFF image files.
code: def _calibrate_data(self, dataset, calibration, min_val, max_val):
      reverse_offset = 0.0
      reverse_scale = 1.0
      if calibration == "brightness_temperature":
          # If data is brightness temperature, the data must be inverted.
          reverse_offset = 255.0
          reverse_scale = -1.0
          dataset.data += KELVIN_TO_CELSIUS
  
      # Need to possible translate channels names from satpy to mitiff
      _data = (
          reverse_offset
          + reverse_scale
          * (
              (dataset.data - float(min_val))
              / (float(max_val) - float(min_val))
          )
          * 255.0
      )
      return _data.clip(0, 255)
  
imports: import logging
  import os
  import dask
  import numpy
  from PIL import Image, ImagePalette
  from satpy.dataset import DataID, DataQuery
  from satpy.writers import ImageWriter, get_enhanced_image
label_desc: Use image node_id 22 for calling the MITIFFWriter obj's underlying member method code with example usage: obj._calibrate_data(dataset, calibration, min_val, max_val) and returns: _data