class_docstr: MSU-GS/A L1B file reader.
class_docstr_tok: ["MSU-GS\/A","L1B","file","reader","."]
docstr: Load data variable and metadata and calibrate if needed.
docstr_tok: ["Load","data","variable","and","metadata","and","calibrate","if","needed","."]
code: def get_dataset(self, dataset_id, ds_info):
      """Load data variable and metadata and calibrate if needed."""
      file_key = ds_info.get("file_key", dataset_id["name"])
      data = self[file_key]
      attrs = (
          data.attrs.copy()
      )  # avoid contaminating other band loading
      attrs.update(ds_info)
  
      # The fill value also needs to be applied
      fill_val = attrs.pop("fill_value")
      data = data.where(data != fill_val, np.nan)
  
      # Data has a scale and offset that we must apply
      data = self._apply_scale_offset(data)
  
      # Data is given as radiance values, we must convert if we want reflectance
      if dataset_id.get("calibration") == "reflectance":
          solconst = float(attrs.pop("F_solar_constant"))
          data = np.pi * data / solconst
          # Satpy expects reflectance values in 0-100 range
          data = data * 100.0
  
      data.attrs = attrs
      data.attrs.update(
          {
              "platform_name": self.platform_name,
              "sensor": self.sensor_name,
              "sat_altitude": self.satellite_altitude,
              "sat_latitude": self.satellite_latitude,
              "sat_longitude": self.satellite_longitude,
          }
      )
  
      return data
  
file_path: satpy/satpy/readers/msu_gsa_l1b.py
imports: from datetime import datetime
  import numpy
  from satpy.readers.hdf5_utils import HDF5FileHandler
label_desc: Use image node_id 8 for calling the MSUGSAFileHandler obj's underlying member method code with example usage: obj.get_dataset(dataset_id, ds_info) and returns: data