rs_workflows/utils/zarr_utils.md¶
Format-agnostic (Zarr v2 and v3) helpers to access Zarr products.
get_zarr_storage_options(zarr_uri)
¶
Return the fsspec storage options needed to access the given Zarr store, if any.
Source code in docs/rs-client-libraries/rs_workflows/utils/zarr_utils.py
is_zarr_group(zarr_location)
¶
Return True if the given location is a Zarr group, whatever its Zarr format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
zarr_location
|
str
|
Local path or S3 URI of a potential Zarr store root. |
required |
Source code in docs/rs-client-libraries/rs_workflows/utils/zarr_utils.py
open_zarr_group(zarr_location)
¶
Open a Zarr group in read-only mode, the Zarr format being detected by the zarr library.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
zarr_location
|
str
|
Local path or S3 URI of the Zarr store root. |
required |
Source code in docs/rs-client-libraries/rs_workflows/utils/zarr_utils.py
read_zarr_attributes(zarr_location)
¶
Read the root group attributes of a Zarr store, whatever its Zarr format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
zarr_location
|
str
|
Local path or S3 URI of the Zarr store root. |
required |