Ah-ha! Thank you! Alright, I will work with that. Also, once I beefed up the resolution of the png file the spheres did turn into contours. However, I am not sure why my contours are colored? I feel like I am following the example pretty closely and that doesn’t happen there... Thanks again! Stephanie On Thu, Aug 30, 2018 at 8:02 PM Britton Smith <brittonsmith@gmail.com> wrote:
Hi Stephanie,
I'll step in here since I'm responsible for a good amount of the clump finder.
BUT, when I type
print (leaf_clumps[0]["gas","density"])
I get 22 outputs.
What you're seeing in the above code is the number of cells in the first leave clump. To see how many leaf_clumps you have, you would do: print (len(leaf_clumps))
The message, "Pixelizing contour 391", may be a red herring. Many clumps will get created and destroyed during the clump finding process, but the unique clump id is always increments, so you could end up with 4 clumps with ids of 0, 8, 42, 391, just as an example.
Still, I suspect you'll find that there are an awful lot of leaf clumps, just based on the image you sent. If there is a large number of clumps along the line of sight, then annotate_clumps may always look a bit messy. If you think there are too many clumps, you can try adding a clump_validator <http://yt-project.org/docs/dev/analyzing/analysis_modules/clump_finding.html...> to set some lower limits on what should be considered a clump. It may very well be the case that you have a large number of single-cell clumps just due to fluctuations in the density field. Adding some validation criterion, like a minimum number of cells, or gravitational boundedness, may help cut that down.
Britton _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
-- -- Dr. Stephanie Tonnesen Associate Research Scientist CCA, Flatiron Institute New York, NY stonnes@gmail.com