class_docstr: File handler for HSAF H5 files.
class_docstr_tok: ["File","handler","for","HSAF","H5","files","."]
docstr: Read a HDF5 file into an xarray DataArray.
docstr_tok: ["Read","a","HDF5","file","into","an","xarray","DataArray","."]
code: def get_dataset(self, ds_id, ds_info):
      """Read a HDF5 file into an xarray DataArray."""
      ds = self._get_dataset(ds_id["name"])
      ds_info = self.get_metadata(ds, ds_id["name"])
  
      if ds_id["name"] == "SC":
          ds_info["start_time"] = self.start_time
          ds_info["data_time"] = self.start_time
          ds_info["end_time"] = self.end_time
  
          data = da.from_array(ds, chunks=CHUNK_SIZE)
          return xr.DataArray(data, attrs=ds_info, dims=("y", "x"))
  
      elif ds_id["name"] == "SC_pal":
          return self._prepare_variable_for_palette(ds, ds_info)
  
file_path: satpy/satpy/readers/hsaf_h5.py
imports: import logging
  from datetime import timedelta
  import dask.array
  import h5py
  import numpy
  import xarray
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.resample import get_area_def
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 9 for calling the HSAFFileHandler obj's underlying member method code with example usage: obj.get_dataset(ds_id, ds_info) and returns: xr, self