d1D.dims # %% [markdown] # ### nD-Dataset (multidimensional dataset) # %% [markdown] # To create a nD NDDataset, we can provide a nD-array like object to the NDDataset instance constructor # %% a = np.random.rand(2, 4, 6) a # %% d3D = NDDataset(a) d3D.title = "energy" d3D.author = "Someone" d3D.name = "3D dataset creation" d3D.history = "created from scratch" d3D.description = "Some example" d3D.dims = ["u", "v", "t"] d3D # %% [markdown] # We can also add all information in a single statement # %% d3D = NDDataset( a, dims=["u", "v", "t"], title="Energy", author="Someone",
d1D.dims # %% [markdown] # ### nD-Dataset (multidimensional dataset) # %% [markdown] # To create a nD NDDataset, we can provide a nD-array like object to the NDDataset instance constructor # %% a = np.random.rand(2, 4, 6) a # %% d3D = NDDataset(a) d3D.title = 'energy' d3D.author = 'Someone' d3D.name = '3D dataset creation' d3D.history = 'created from scratch' d3D.description = 'Some example' d3D.dims = ['u', 'v', 't'] d3D # %% [markdown] # We can also add all information in a single statement # %% d3D = NDDataset(a, dims=['u', 'v', 't'], title='Energy', author='Someone', name='3D_dataset', history='created from scratch', description='a single statement creation example') d3D # %% [markdown]