[yt-users] Data objects in yt

Sam Geen samgeen at astro.ox.ac.uk
Tue Dec 10 04:58:49 PST 2013


As a general Python piece of advice, if you type "help(box)" after those 
lines it'll give you the class interface of the box object and its 
docstrings.

On 10/12/13 13:55, k.grisdale at surrey.ac.uk wrote:
> Hi yt users
>
> I am using yt to create data objects to sample properties in a RAMSES simulation at different locations. I want to create a cuboid data object with x and y width of 0.2 and a z width of 0.4. I have been using the following commands to create the object:
>
>
>>>> left = [0.4,0.4,0.3]
>>>> cen = [0.5,0.5,0.5]
>>>> right = [0.6,0.6,0.7]
>>>> box = pf.h.region(cen, left, right)
>   My Question is will this create a data object of the shape that I want or will it create something else? Is there a way to see the shape of the data object?
>
> Thanks in advance for the help
>
> Kearn
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org




More information about the yt-users mailing list