Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
data-infrastructure-services
tzis
Commits
ac30db92
Commit
ac30db92
authored
May 28, 2021
by
Fabian Wachsmann
Browse files
Updated README
parent
aafb9c89
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
ac30db92
...
@@ -11,12 +11,25 @@ pip install git+https://gitlab.dkrz.de/mipdata/python_package_zarr_in_swift.git#
...
@@ -11,12 +11,25 @@ pip install git+https://gitlab.dkrz.de/mipdata/python_package_zarr_in_swift.git#
import tzis
import tzis
path_var = <path>
path_var = <path>
mfs_towrite=[path_var +filename for filename in os.listdir(path_var)]
mfs_towrite=[path_var +filename for filename in os.listdir(path_var)]
write_to_swift(mfs=mfs_towrite,outid=<container_name>,
varname = pr
varname=<var>,
verbose=True)
container = tzis.Tzis(OS_STORAGE_URL,
OS_AUTH_TOKEN,
container_name,
mf_dset=mfs_towrite,
varname=varname,
verbose=True
)
container.open_store(name_in_object_storage)
container.write_to_swift(chunkdim="time",
target_mb=1000,
startchunk=0,
validity_check=False,
maxretries=3)
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment