modelarrayio.storage.tiledb_storage.create_scalar_matrix_array

modelarrayio.storage.tiledb_storage.create_scalar_matrix_array(base_uri, dataset_path, stacked_values, sources_list, storage_dtype='float32', compression='zstd', compression_level=5, shuffle=True, tile_voxels=0, target_tile_mb=2.0)[source]

Create a scalar matrix array in a TileDB directory.

Parameters:
  • base_uri (str) – Base URI.

  • dataset_path (str) – Dataset path.

  • stacked_values (numpy.ndarray) – Stacked values.

  • sources_list (list) – Sources list.

  • storage_dtype (str) – Storage dtype.

  • compression (str) – Compression method.

  • compression_level (int) – Compression level.

  • shuffle (bool) – Whether to shuffle the data.

  • tile_voxels (int) – Tile voxels.

  • target_tile_mb (float) – Target tile size in MB.

Returns:

URI of the created array.

Return type:

str