class_docstr: Base file handler for HDF EOS data for both L1b and L2 products.
class_docstr_tok: ["Base","file","handler","for","HDF","EOS","data","for","both","L1b","and","L2","products","."]
docstr: Initialize the base reader.
docstr_tok: ["Initialize","the","base","reader","."]
code: def __init__(self, filename, filename_info, filetype_info, **kwargs):
      """Initialize the base reader."""
      BaseFileHandler.__init__(
          self, filename, filename_info, filetype_info
      )
      try:
          self.sd = SD(self.filename)
      except HDF4Error as err:
          error_message = "Could not load data from file {}: {}".format(
              self.filename, err
          )
          raise ValueError(error_message)
  
      self.metadata = self._load_all_metadata_attributes()
  
imports: from __future__ import annotations
  import logging
  import re
  from ast import literal_eval
  from contextlib import suppress
  from datetime import datetime
  import numpy
  import xarray
  from pyhdf.error import HDF4Error
  from pyhdf.SD import SD
  from satpy import DataID
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import normalize_low_res_chunks
label_desc: Use image node_id 1 to create a new HDFEOSBaseFileReader object from inherited base classes: BaseFileHandler with example: obj = HDFEOSBaseFileReader(filename, filename_info, filetype_info)