class_docstr: Base class for common HDF4 operations.
class_docstr_tok: ["Base","class","for","common","HDF4","operations","."]
docstr: Get file content as xarray compatible objects.
docstr_tok: ["Get","file","content","as","xarray","compatible","objects","."]
code: def __getitem__(self, key):
      """Get file content as xarray compatible objects."""
      val = self.file_content[key]
      if isinstance(val, SDS):
          # these datasets are closed and inaccessible when the file is closed, need to reopen
          return self._open_xarray_dataset(val)
      return val
  
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 5 for calling the HDF4FileHandler obj's underlying member method code with example usage: obj.__getitem__(key) and returns: val, self