Re: Density from scattered points [message #25188] |
Fri, 25 May 2001 08:35 |
Don J Lindler
Messages: 19 Registered: April 2001
|
Junior Member |
|
|
"Simon de Vet" <sdevet@is2.dal.ca> wrote in message
news:3B0E6CC6.BA48E499@is2.dal.ca...
> 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.
Don
|
|
|