[yt-users] Data objects in yt

Britton Smith brittonsmith at gmail.com
Tue Dec 10 05:29:47 PST 2013


Hi Kearn,

If you want to physically see the shape of the object you are creating, you
can provide it as a data source to a project.  For example, take your
region and do:
plot = ProjectionPlot(pf, "x", "Density", data_source=box)
plot.save()

Britton


On Tue, Dec 10, 2013 at 12:58 PM, Sam Geen <samgeen at astro.ox.ac.uk> wrote:

> 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
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20131210/751e1171/attachment.htm>


More information about the yt-users mailing list