Skip to content

Commit c2b10b0

Browse files
committed
Add doc about custom remote storage
1 parent a07c660 commit c2b10b0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/user-guide/storage.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ API. ``storage_options`` can be used to configure the fsspec backend.:
8787
>>> zarr.open_group(store=store, mode='r')
8888
<Group <FsspecStore(S3FileSystem, noaa-nwm-retro-v2-zarr-pds)>>
8989

90+
The type of filesystem (e.g. S3, https, etc..) is inferred from the scheme of the url (e.g. s3 for "**s3**://noaa-nwm-retro-v2-zarr-pds").
91+
In case a specific filesystem is needed, one can explicitly create it. For example to create a S3 filesystem:
92+
>>> fs = fsspec.filesystem(
93+
... 's3', anon=True, asynchronous=True,
94+
... client_kwargs={'endpoint_url': "https://s3.example-site.org"}
95+
... )
96+
>>> store = zarr.storage.FsspecStore(fs)
97+
9098
Memory Store
9199
~~~~~~~~~~~~
92100

0 commit comments

Comments
 (0)