import yt ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030') ad = ds.all_data() for grid, mask in ad.blocks: print mask.shape, mask.dtype, grid