class_docstr: Base class for common HDF4 operations.
class_docstr_tok: ["Base","class","for","common","HDF4","operations","."]
docstr: Open file and collect information.
docstr_tok: ["Open","file","and","collect","information","."]
code: def __init__(self, filename, filename_info, filetype_info):
      """Open file and collect information."""
      super(HDF4FileHandler, self).__init__(
          filename, filename_info, filetype_info
      )
      self.file_content = {}
      file_handle = SD(self.filename, SDC.READ)
      self._collect_attrs("", file_handle.attributes())
      for k in file_handle.datasets().keys():
          self.collect_metadata(k, file_handle.select(k))
      del file_handle
  
file_path: satpy/satpy/readers/hdf4_utils.py
imports: import logging
  import dask.array
  import numpy
  import xarray
  from pyhdf.SD import SD, SDC, SDS
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 1 to create a new HDF4FileHandler object from inherited base classes: BaseFileHandler with example: obj = HDF4FileHandler(filename, filename_info, filetype_info)