pub fn compress_array_chunked<P, A, S>(
path: P,
array: &ArrayBase<S, IxDyn>,
algorithm: CompressionAlgorithm,
level: Option<u32>,
chunk_size: usize,
) -> Result<()>
Expand description
Compress an array in chunks for memory-efficient processing of large arrays
This function processes the array in chunks to avoid loading the entire array into memory at once, which is useful for very large arrays.
§Arguments
path
- Path to save the compressed arrayarray
- The array to compressalgorithm
- The compression algorithm to uselevel
- The compression level (0-9)chunk_size
- Size of chunks to process at once (number of elements)
§Returns
Result indicating success or failure