class_docstr: Base class for common HDF4 operations.
class_docstr_tok: ["Base","class","for","common","HDF4","operations","."]
docstr: Read the band in blocks.
docstr_tok: ["Read","the","band","in","blocks","."]
code: def _open_xarray_dataset(self, val, chunks=CHUNK_SIZE):
      """Read the band in blocks."""
      dask_arr = from_sds(val, chunks=chunks)
      attrs = val.attributes()
      return xr.DataArray(dask_arr, dims=("y", "x"), attrs=attrs)
  
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 4 for calling the HDF4FileHandler obj's underlying member method code with example usage: obj._open_xarray_dataset(val, chunks) and returns: xr