rockverse.dect.create_group#

rockverse.dect.create_group(store, *, path=None, overwrite=False, **kwargs)[source]#

Create a new Dual Energy Computed Tomography (DECT) group in a specified Zarr store.

Parameters:
  • store (str) – The path to the Zarr store where the group will be created. This has to be local store or a path in the local file system.

  • path (str, optional) – The path within the Zarr store where the new group will be created. If not provided, the group will be created at the root level of the store.

  • overwrite (bool) – If True, any existing data at the specified path will be deleted before creating the new group. Default is False.

  • **kwargs – Additional keyword arguments to be passed to the underlying Zarr group creation funtion.

Returns:

An instance of the DECTGroup class representing the newly created group.

Return type:

DECTGroup

Examples

To create a new DECT group:

>>> import rockverse as rv
>>> dectgroup = rv.dect.create_group('/path/to/dect/store', path='group1', overwrite=True)