This is my version of the densfield code by Steffen Knollmann. It has been tailored for HDF5 GADGET files where each file of a snapshot can fit into RAM as to avoid the juggling of file pointers etc.
Any issues email jseiler@swin.edu.au