[yt-users] particle filters

tyuta y0u1t1a5.t at gmail.com
Mon Oct 16 12:17:49 PDT 2017


Dear yt users,

Hi, I want to know about particle filters. I learned that I can specify
some particle type by doing like this:

def stars(pfilter, data):
    filter = data[(pfilter.filtered_type, "particle_type")] == 2
    return filter

I learned that the filter for star is No.2 from this example. What about
other particles like gas or dark matter ? (Nathan kindly told me that dark
matter is 0, but fragmentary information I got from google search suggest
that it's 1, so I'm confused...) Is there any good documentation for this?
I'm working with Enzo data.

Best,
Y.T.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171016/e28be683/attachment.html>


More information about the yt-users mailing list