class_docstr: File handler for the SGLI l1b data.
class_docstr_tok: ["File","handler","for","the","SGLI","l1b","data","."]
docstr: Calibrate visible data.
docstr_tok: ["Calibrate","visible","data","."]
code: def calibrate_vis(self, dataset, calibration):
      """Calibrate visible data."""
      attrs = dataset.attrs
      if calibration == "counts":
          return dataset
      if calibration == "reflectance":
          calibrated = (
              dataset * attrs["Slope_reflectance"]
              + attrs["Offset_reflectance"]
          ) * 100
      elif calibration == "radiance":
          calibrated = dataset * attrs["Slope"] + attrs["Offset"]
      missing, _ = self.get_missing_and_saturated(attrs)
      return calibrated.where(dataset < missing)
  
imports: import logging
  from datetime import datetime
  import dask.array
  import h5py
  import numpy
  import xarray
  from dask.array.core import normalize_chunks
  from satpy.readers.file_handlers import BaseFileHandler
label_desc: Use image node_id 8 for calling the HDF5SGLI obj's underlying member method code with example usage: obj.calibrate_vis(dataset, calibration) and returns: calibrated, dataset