[yt-users] getting all the data in a subgrid

Jean-Claude Passy jcpassy at gmail.com
Thu Mar 8 09:25:16 PST 2012


Hi all,

As far as I understand, a:

------------------------------------

region = pf.h.region(...)

density = region["Density"]

------------------------------------


will return the density field without considering cells that have 
subcells. How can I access ALL the data stored in the hdf5 file? I have 
tried to use

------------------------------------

grid = pf.h.grids[i]

rhogrid = grid.get_data("Density")

------------------------------------


but I would like to get a 1D array.
Thanks for you help,

JC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20120308/8a1c8036/attachment.htm>


More information about the yt-users mailing list