Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenience functions for save_array and open_array #63

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

keller-mark
Copy link
Owner

@keller-mark keller-mark commented Feb 14, 2024

Fixes #62
Towards #2

Usage

library(pizzarr)

a <- array(data=1:20, dim=c(2, 10))
z <- zarr_create_array(data=a, shape=dim(a), dtype="<f4", fill_value=NA)
zarr_save_array(file.path("test_data", "test_zarr_save_array.zarr"), z, overwrite = TRUE)

Based on https://zarr.readthedocs.io/en/stable/api/convenience.html#zarr.convenience.save_array and https://zarr.readthedocs.io/en/stable/api/creation.html#zarr.creation.open_array

@keller-mark keller-mark merged commit 35b02ff into main Feb 14, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write new zarr object to disk
1 participant