[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Density from scattered points

"Simon de Vet" <sdevet@is2.dal.ca> wrote in message
> Hello!
> I have a set of 10,000 points, each with specific X and Y locations. Is
> there an easy way to convert the discrete points into a density array
> suitable for plotting with Contour, or for fitting a surface? I just
> need a simple function to subdivide the region into squares, and assign
> a density based on the number of points which fall within a particular
> square.
> I think I could probably write something from scratch, but it seems that
> this is something that should be out there already...
> Any ideas?
> Simon

Try the IDL HIST_2D function.