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

Home » Public Forums » archive » Re: Problem with histogram calculation - please need help
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: Problem with histogram calculation - please need help [message #59966 is a reply to message #59965] Mon, 21 April 2008 06:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
moxament@gmail.com writes:

> I have a floating-point array d with dimensions 300x300. The minimum
> value of the array is 3.07527 x 10^9 and the maximum value is 1054.91
> x 10^9. I can not calculate the histogram of the array. I get the
> following message:
>
> ENVI> hist = HISTOGRAM(d)
> % Array has too many elements.
> % Execution halted at: $MAIN$.
>
> Can anyone tell me how can I overcome this problem please.

I think I would set your bin size more appropriately. :-)

Something like this would probably work:

binsize = (Max(array) - Min(array)) / 100

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Convolving speed issue
Next Topic: EVF in Lat/Lon projection shifted when overlaying to other images

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

Current Time: Sun Nov 30 04:35:44 PST 2025

Total time taken to generate the page: 0.40403 seconds