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

Home » Public Forums » archive » Some histogram magic help required - gridding/counting large dataset
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: Some histogram magic help required - gridding/counting large dataset [message #88156 is a reply to message #88153] Tue, 25 March 2014 05:56 Go to previous messageGo to previous message
Andy Sayer is currently offline  Andy Sayer
Messages: 127
Registered: February 2009
Senior Member
If it is a 2D (x/y) dataset you could use the built-in function hist_2d: http://www.exelisvis.com/docs/HIST_2D.html

What exactly is the issue you are having? You can specify bin sizes and min/max values with keywords min1, max1, bin1, min2, max2, bin2.

Andy

On Tuesday, March 25, 2014 6:11:03 AM UTC-4, rj...@le.ac.uk wrote:
> I have 2 large datasets that I want to plot as the x and y data on a scatter plot.
>
>
>
> However I'd also like to grid this data in the x and y direction and count how many datapoints fall into each grid cell.
>
>
>
> I know I should be able to do this with hist_nd but I just can't figure out exactly how to do it.
>
>
>
> Cheers
>
>
>
> Rob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: a GDL Workshop in June 2014
Next Topic: cgwindow unable to create PDF file in IDL 8.3

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

Current Time: Fri Oct 10 05:33:13 PDT 2025

Total time taken to generate the page: 1.20162 seconds