Skip to content

HDF5/NetCDF4

virtualizarr.parsers.HDFParser

__call__

__call__(url: str, registry: ObjectStoreRegistry) -> ManifestStore

Parse the metadata and byte offsets from a given HDF5/NetCDF4 file to produce a VirtualiZarr ManifestStore.

Parameters:

Returns:

__init__

__init__(
    group: str | None = None,
    drop_variables: Iterable[str] | None = None,
    reader_factory: ReaderFactory = BlockStoreReader,
)

Instantiate a parser that can be used to virtualize HDF5/NetCDF4 files using the __call__ method.

Parameters:

  • group (str | None, default: None ) –

    Name of the group within the HDF5 file to virtualize.

  • drop_variables (Iterable[str] | None, default: None ) –

    Variables in the file that will be ignored when creating the ManifestStore (default: None, do not ignore any variables).

  • reader_factory (ReaderFactory, default: BlockStoreReader ) –

    A callable that creates a file-like reader from a store and path. Must return an object implementing the ReadableFile protocol. Default is BlockStoreReader.