Hi Daniel,<div><br></div><div>The cell_volume field is an alias for ('gas, 'cell_volume'), which for Gadget data corresponds to the volume of octree cells. In general there will be fewer octree cells than particles.  I'm a little surprised the numbers are so close since the default option is to refine octree cells when more than 64 particles are in a cell, <span></span>although the precise structure of the octree will depend on the particle distribution.</div>
<div><br></div><div>Nathan<br><br>On Wednesday, July 9, 2014, Daniel <<a href="mailto:cunnama@gmail.com">cunnama@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi there,<div><br></div><div>I am extracting a region from a Gadget dataset using the sphere function and then attempting to access the "cell_volume" field.</div><div><br></div><div>For some reason the number of elements in the cell volume field is not equal to the number of particles in the region.</div>


<div><br></div><div>For example I have 4341760 particles but only 4228930 cell volume elements.</div><div><br></div><div>I have extracted a sphere which encompassed all the particles and the number of cell volume elements is then equal.</div>


<div><br></div><div>Any ideas or advice would be greatly appreciated.</div><div><br></div><div>Kind Regards,</div><div>Daniel</div></div>
</blockquote></div>