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: Collect metadata.
docstr_tok: ["Collect","metadata","."]
code: def collect_metadata(self, name, obj):
      """Collect metadata."""
      if isinstance(obj, h5py.Dataset):
          self.file_content[name] = obj
          self.file_content[name + "/dtype"] = obj.dtype
          self.file_content[name + "/shape"] = obj.shape
      self._collect_attrs(name, obj.attrs)
  
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 5 for calling the HDF5FileHandler obj's underlying member method code with example usage: obj.collect_metadata(name, obj) without return types