satpy.readers.hdf4_utils module

Helpers for reading hdf4-based files.

class satpy.readers.hdf4_utils.HDF4FileHandler(filename, filename_info, filetype_info)[source]

Bases: BaseFileHandler

Base class for common HDF4 operations.

Open file and collect information.

_collect_attrs(name, attrs)[source]
_open_xarray_dataset(val, chunks=4096)[source]

Read the band in blocks.

collect_metadata(name, obj)[source]

Collect all metadata about file content.

get(item, default=None)[source]

Get variable as DataArray or return the default.

satpy.readers.hdf4_utils.from_sds(var, *args, **kwargs)[source]

Create a dask array from a SD dataset.