Hello,
I am trying to analyze 2D output data (.h5) from ET. I want to get a 2D array with uniform grid.However HDF5 with AMR contains many layers and each layer breaks into many components. When I read out the HDF5 data , I do not know where each component should be. Is there some suggested way to map HDF5 data into a 2D array ?
Hi,
If you want to do it manually (and I wouldn't recommend reinventing the wheel), all the information you need to place the individual component in coordinate space is listed in attributes of the datasets. Look at the "origin" attribute for the coordinates of the origin of the component, and the "delta" attribute for the grid spacing.