[yt-users] Creating a ring

Cameron Hummels chummels at gmail.com
Tue Jun 16 22:09:14 PDT 2015


In yt-2.x, there were boolean data objects that could do this, but they
have not been fully implemented in yt 3:

http://yt-project.org/docs/dev/analyzing/objects.html#combining-objects-boolean-data-objects

You could always use yt 2.x to do this for now...

Cameron

On Tue, Jun 16, 2015 at 9:18 PM, Stephanie Tonnesen <stonnes at gmail.com>
wrote:

> Hi yt-users!
>
> I am trying to analyze a cylindrical loop in my dataset.  So what I want
> to do is to create two disks:
>
> d1 = ds.disk([0.5, 0.5, 0.5], [0., 0., 1.], (8, 'kpc'), (1, 'kpc'))
> d2 = ds.disk([0.5, 0.5, 0.5], [0., 0., 1.], (7, 'kpc'), (1, 'kpc'))
>
> and have r1 be the region containing all the cells in d1 and NOT in d2.  I
> feel like there must be an easy way to do this, but can't think of it.
> Also, searching the yt-users archive kept coming up with an error.
>
> Thanks in advance!
>
> Stephanie
>
> --
> Dr. Stephanie Tonnesen
> Alvin E. Nashman Postdoctoral Fellow
> Carnegie Observatories, Pasadena, CA
> stonnes at gmail.com
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>


-- 
Cameron Hummels
Postdoctoral Researcher
Steward Observatory
University of Arizona
http://chummels.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150616/42170241/attachment.html>


More information about the yt-users mailing list