PYME.IO.zarr_compat module

Zarr compatibility helpers for PYME tile pyramids.

This module provides a read-only fsspec filesystem (pyme://) which maps standard zarr chunk keys to PYME tile filenames when PYME metadata is present, and otherwise falls through to regular local filesystem behavior.

class PYME.IO.zarr_compat.PYMEZarrFileSystem(*args, **kwargs)

Bases: object

Read-only local filesystem shim for pyme:// URLs.

For a PYME pyramid with metadata in .zattrs under the pyme key, it translates chunk keys of the form level/z/x/y into the configured PYME tile filename schema. If PYME metadata is absent, all accesses are delegated directly to the local filesystem so ordinary zarr stores still work via pyme://.

cat_file(path, start=None, end=None, **kwargs)
exists(path, **kwargs)
info(path, **kwargs)
isdir(path)
ls(path, detail=True, **kwargs)
open(path, mode='rb', **kwargs)
protocol = 'pyme'
class PYME.IO.zarr_compat.PZFCodec

Bases: object

Read-only numcodecs codec for PZF-encoded buffers.

codec_id = 'pyme-pzf'
decode(buf, out=None)
encode(buf)
classmethod from_config(config)
get_config()