class_docstr: Base class for reading JPSS VIIRS & ATMS SDR HDF5 Files.
code: def _update_data_attributes(self, data, dataset_id, ds_info):
      file_units = _get_file_units(dataset_id, ds_info)
      output_units = ds_info.get("units", file_units)
      i = getattr(data, "attrs", {})
      i.update(ds_info)
      i.update(
          {
              "platform_name": self.platform_name,
              "sensor": self.sensor_name,
              "start_orbit": self.start_orbit_number,
              "end_orbit": self.end_orbit_number,
              "units": output_units,
              "rows_per_scan": self._scan_size(
                  ds_info["dataset_group"]
              ),
          }
      )
      i.update(dataset_id.to_dict())
      data.attrs.update(i)
      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 20 for calling the JPSS_SDR_FileHandler obj's underlying member method code with example usage: obj._update_data_attributes(data, dataset_id, ds_info) and returns: data