tlpipe.container.timestream_common.TimestreamCommon.create_time_ordered_dataset

TimestreamCommon.create_time_ordered_dataset(name, data, axis_order=(0, ), recreate=False, copy_attrs=False)[source]

Create a time ordered dataset.

Parameters:
  • name (string) – Name of the dataset.
  • data (np.ndarray or MPIArray) – The data to create a dataset.
  • axis_order (tuple) – A tuple with the index 0 denotes time axis of the created dataset.
  • recreate (bool, optional) – If True will recreate a dataset with this name if it already exists, else a RuntimeError will be rasised. Default False.
  • copy_attrs (bool, optional) – If True, when recreate the dataset, its original attributes will be copyed to the new dataset, else no copy is done. Default Fasle.