class_docstr: Base class for reading JPSS VIIRS & ATMS SDR HDF5 Files.
docstr: Concatenate dataset.
docstr_tok: ["Concatenate","dataset","."]
code: def concatenate_dataset(self, dataset_group, var_path, **kwargs):
      """Concatenate dataset."""
      scan_size = self._scan_size(dataset_group)
      scans = self._get_scans_per_granule(dataset_group)
      start_scan = 0
      data_chunks = []
      scans = xr.DataArray(scans)
  
      variable = self._get_variable(var_path, **kwargs)
      # check if these are single per-granule value
      if variable.size != scans.size:
          for gscans in scans.values:
              data_chunks.append(
                  variable.isel(
                      y=slice(
                          start_scan, start_scan + gscans * scan_size
                      )
                  )
              )
              start_scan += gscans * scan_size
          return xr.concat(data_chunks, "y")
      else:
          # This is not tested - Not sure this code is ever going to be used? A. Dybbroe
          # Mon Jan  2 13:31:21 2023
          return self.expand_single_values(variable, scans)
  
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 22 for calling the JPSS_SDR_FileHandler obj's underlying member method code with example usage: obj.concatenate_dataset(dataset_group, var_path) and returns: xr, self