class_docstr: Small class for inspecting a HDF5 file and retrieve its metadata/header data.
class_docstr_tok: ["Small","class","for","inspecting","a","HDF5","file","and","retrieve","its","metadata\/header","data","."]
docstr: Initialize file handler.
docstr_tok: ["Initialize","file","handler","."]
code: def __init__(self, filename, filename_info, filetype_info):
      """Initialize file handler."""
      super(HDF5FileHandler, self).__init__(
          filename, filename_info, filetype_info
      )
      self.file_content = {}
      self._attrs_cache = {}
  
      try:
          f_obj = open_file_or_filename(self.filename)
          file_handle = h5py.File(f_obj, "r")
      except IOError:
          LOG.exception(
              "Failed reading file %s. Possibly corrupted file",
              self.filename,
          )
          raise
  
      file_handle.visititems(self.collect_metadata)
      self._collect_attrs("", file_handle.attrs)
      file_handle.close()
  
file_path: satpy/satpy/readers/hdf5_utils.py
imports: import logging
  import dask.array
  import h5py
  import numpy
  import xarray
  from satpy.readers import open_file_or_filename
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.readers.utils import np2str
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 1 to create a new HDF5FileHandler object from inherited base classes: BaseFileHandler with example: obj = HDF5FileHandler(filename, filename_info, filetype_info)