Indeed, since RAMSES does not really differentiate between it's particles.
You will have to apply a filter.
Lets say that you have created a projection plot object ( in your case p )
created from the data set "halo_sphere". If you add a particle filter to it
to filter for stars by particle age ( in RAMSES dark matter has age = 0..
so this is a good way of filtering for stars).
First, you need to define your filter function early on in your script (or
in another script and import it from that)
This is the filter function I typically use
filter = np.logical_and(data["particle_age"] != 0,
And with your plot object, you can use the key word "ptype" to plot the
stars (or any other combination of particles/stars as you please)
And you should be able to annotate your star particles to your plot.
Please don't copy and paste the code above directly since I am reaponding
to this on my phone and is probably got unequal indentation.
For more info about the overplot particles, see
Hooe this helps
On 17 Jan 2015 00:55, "Rick Sarmento" <rsarment(a)asu.edu> wrote:
So I’m trying to “p.annotate_particles” with RAMSES
star particles (over a
temperature projection plot) …. But everything in RAMSES is a particle, so
when I do
I end up with a solid black plot… How do I tell annotate_particles to just
use the particles with ID < 0 (these are the star particles)??
yt-users mailing list