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:
objectRead-only local filesystem shim for
pyme://URLs.For a PYME pyramid with metadata in
.zattrsunder thepymekey, it translates chunk keys of the formlevel/z/x/yinto 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 viapyme://.- 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'¶