comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: plotting particle data with halos?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plotting particle data with halos? [message #33699] Thu, 16 January 2003 20:20 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Matt Wood <wood@astro.nospam.fit.edu> writes:


> I've got particle data generated from 'smoothed particle hydrodynamics'
> code that I'd like to visualize using idl. Are there any routines that
> will plot particles with 'halos' instead of simple colored points? If
> you'd like to see an example of what we're doing, please see
> www.astro.fit.edu/wood/100k34.gif
> It's a simulation of an interacting binary star system that has an
> accretion disk. Color indicates temperature in the disk.

The easiest thing to do might be to plot to the Z buffer, capture it,
then convolve with a gaussian, or even simpler, just SMOOTH it. That
will give a more smooth look, but of course every point will have the
same "halo" size.

However, if you really need variable size smooth particles, then you
need to kick it up a notch. You could compute a 2D gaussian for each
point, add them to an IDL array one at a time, but that might get
pretty computationally expensive. Better might be to make up a
library of 2D gaussians and then add those in turn, picking the
closest one.

A trick combination of the 1st (convolution) and 2nd (addition of
gaussians) approaches would be to sort the points according to their
particle size, partition them into a few groups, make
plots+convolutions of each using the right particle size, then add
them up.

Cool sims! I work on X-ray binaries.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Previous Topic: plotting particle data with halos?
Next Topic: Re: xemacs syntax highlighting problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:44:12 PDT 2025

Total time taken to generate the page: 1.51867 seconds