class_docstr: Base class for reading JPSS VIIRS & ATMS SDR HDF5 Files.
docstr: Get sscale and offset factors and convert/scale data to given physical unit.
docstr_tok: ["Get","sscale","and","offset","factors","and","convert\/scale","data","to","given","physical","unit","."]
code: def scale_data_to_specified_unit(self, data, dataset_id, ds_info):
      """Get sscale and offset factors and convert/scale data to given physical unit."""
      var_path = self._generate_file_key(dataset_id, ds_info)
      dataset_group = ds_info["dataset_group"]
      file_units = _get_file_units(dataset_id, ds_info)
      output_units = ds_info.get("units", file_units)
  
      factor_var_path = ds_info.get("factors_key", var_path + "Factors")
  
      factors = self.get(factor_var_path)
      factors = self._adjust_scaling_factors(
          factors, file_units, output_units
      )
  
      if factors is not None:
          return self.scale_swath_data(data, factors, dataset_group)
  
      LOG.debug("No scaling factors found for %s", dataset_id)
      return data
  
imports: import logging
  from datetime import datetime, timedelta
  import dask.array
  import numpy
  import xarray
  from satpy.readers.hdf5_utils import HDF5FileHandler
label_desc: Use image node_id 11 for calling the JPSS_SDR_FileHandler obj's underlying member method code with example usage: obj.scale_data_to_specified_unit(data, dataset_id, ds_info) and returns: data, self