[yt-users] YT-3.3.1 : selecting cells in a sphere
Vincent Picouet
vincent.picouet at student.ecp.fr
Thu Oct 27 13:26:20 PDT 2016
Hi,
I am getting an issue with a very basic YT code:
I am using the 3.3.1 version and I can not access the cells contained in a sphere (it returns all the cells of the ENZO simulation):
The YT cookbook explains that to access the different fields (for example the x position) of the cells contained in a sphere one must code : ds.sphere[(0.5,0.5,0.5),0.1)][‘x’] …
But it gives me exactly the same results of ds.all_data().[‘x’] which is a 100M cells’ list.
Do you have an idea about selecting only the sphere region easily?
Thanks
Vincent
More information about the yt-users
mailing list