# 3D Array of Doubles imported from HDF5

**URL:** https://discourse.paraview.org/t/3d-array-of-doubles-imported-from-hdf5/11391
**Category:** ParaView Support
**Created:** [February 13, 2023, 3:57pm UTC](https://discourse.paraview.org/t/3d-array-of-doubles-imported-from-hdf5/11391 "2023-02-13T15:57:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MITgnome](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mitgnome/32/10895_2.png) [@MITgnome](https://discourse.paraview.org/u/MITgnome)
#### Post date: [February 13, 2023, 3:57pm UTC](https://discourse.paraview.org/t/3d-array-of-doubles-imported-from-hdf5/11391/1 "2023-02-13T15:57:44Z")

</div>

I am able to read 321x321x641 array of doubles stored in an HDF5 file using a programmable source.

_h5py.File(‘/Users/…/pixel\_0\_phi.hdf5’, ‘r’)_  
_a\_group\_key = list(f.keys())[0]_  
_data = f[a\_group\_key][()]_

Each element in the array is the electrical potential at regular grid location in a 3D cube.  
I am having a bear of a time simply displaying the data or slices from the cube. If anyone can point me to a good simple example, that would be great. The data that I am using should look like this:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/2d7eb385df0aab98be90317d603d148829fd27a4.jpeg)
