Input/output (ome_zarr.io
)
Reading logic for ome-zarr.
Primary entry point is the parse_url()
method.
- class ome_zarr.io.ZarrLocation(path: Path | str, mode: str = 'r', fmt: Format = FormatV04)
IO primitive for reading and writing Zarr data. Uses FSStore for all data access.
No assumptions about the existence of the given path string are made. Attempts are made to load various metadata files and cache them internally.
- basename() str
Return the last element of the underlying location.
>>> ZarrLocation("/tmp/foo").basename() 'foo' >>> ZarrLocation("https://example.com/bar").basename() 'bar' >>> ZarrLocation("https://example.com/baz/").basename() 'baz'
- create(path: str) ZarrLocation
Create a new Zarr location for the given path.