
Create a new zarr array and write its metadata to the store.
Source:R/extendr-wrappers.R
zarrs_create_array.RdReturns the same metadata list as zarrs_open_array_metadata.
Usage
zarrs_create_array(
store_url,
array_path,
shape,
chunks,
dtype,
codec_preset,
fill_value,
attributes_json,
zarr_format
)Arguments
- store_url
Filesystem path to the store root.
- array_path
Path to the array within the store.
- shape
Integer vector of array dimensions.
- chunks
Integer vector of chunk dimensions.
- dtype
V3-style data type name (e.g., "float64", "int32").
- codec_preset
Compression preset: "none", "gzip", "blosc", or "zstd".
- fill_value
Scalar fill value (numeric, integer, logical, or NA).
- attributes_json
JSON string of array attributes.
- zarr_format
Integer: 2 for V2, 3 for V3.