Convenience functions and exposed metadata #101
-
Hey there! This is a really cool library! I was considering using it in a project I'm working on, but I have a couple questions, I skimmed through the docs but I'm not sure about 2 functionalities that would be quite useful on my end.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you might be looking for the following methods: These can store an arbitrary subset of an array, you don't have to think about chunks. They (and other You can grab individual components of the metadata: see https://docs.rs/zarrs/latest/zarrs/array/struct.Array.html#immutable-array-metadata--properties and below. EDIT: also |
Beta Was this translation helpful? Give feedback.
I think you might be looking for the following methods:
Array::store_array_subset
Array::store_array_subset_elements
Array::store_array_subset_ndarray
These can store an arbitrary subset of an array, you don't have to think about chunks. They (and other
Array::store_*
methods, excludingstore_encoded_chunk
) take care of everything for you, compression, sharding, etc.You can grab individual components of the metadata: see https://docs.rs/zarrs/latest/zarrs/array/struct.Array.html#immutable-array-metadata--properties and below. EDIT: also
Array::metadata()
returns an enumArrayMetadata
that can represent V2/V3 metadata. The variants are completelypub
.