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

Home » Public Forums » archive » non-integer binsize
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
non-integer binsize [message #43876] Wed, 04 May 2005 17:28
patrick.gatlin is currently offline  patrick.gatlin
Messages: 7
Registered: June 2004
Junior Member
This may be a very elementary question, but I was wondering if the
histogram function can accept a binsize < 1?

I am using the hist_2d function to determine the density field of some
lat/lon locations in a dataset. These values range 4 deg lat and 4 deg
lon. In order to determine the # of points per square km, I have setup
the hist_2d function as follows:

IDL> result=hist_2d(lon,lat,max1=lonmax,min1=lonmin,max2=latmax,$
min2=latmin,bin1=1/111.,bin2=1/111.)

where the size of bin1 and bin2 are the approximate conversions from km
to degrees (1km=.09 deg).
Since hist_2d needs two bins, then is the result equal the number of
points within a box that is 1/111. long on all sides? Thus am assuming
result will give me the # of points per square kilometer. Is this a
correct assumption based upon the way hist_2d works?
Thanks!
[Message index]
 
Read Message
Previous Topic: interpolation in 5 dimensional space (how and speed)
Next Topic: Re: ENVI IDL Link

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

Current Time: Sat Oct 11 06:32:32 PDT 2025

Total time taken to generate the page: 2.00170 seconds