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

Home » Public Forums » archive » Bug in ENVI_GET_STATISTICS ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Bug in ENVI_GET_STATISTICS ? [message #12818] Tue, 08 September 1998 00:00 Go to next message
jmcfee is currently offline  jmcfee
Messages: 17
Registered: August 1995
Junior Member
In ENVI, I'm trying to use some statistics gathered from a Region of Interest. I
extracted them and saved them to a file, pan15.sta. I then tried using the
following code (almost the same as the example in the programmer's guide) to get
the stats out of the file:

envi_get_statistics, '/export/home2/jmcfee/casi/itres/dres9707/work/pan15.sta',$
mean=mean,dmax=dmax, dmin=dmin, pos=pos
if (pos(0) eq -1) then return
for i=0, n_elements(pos)-1 do $
print, 'Band', pos(i), dmin(i), dmax(i), mean(i)
end

I get an error at the "envi_get_statistics" line:

% Array requires more memory than IDL can address.
% Execution halted at: STATS_READ
% ENVI_GET_STATISTICS
% $MAIN$ 1 /home/jmcfee/idl_lib/statsprog.pro
[my program file]

The file exist there and I've checked it out for format, etc. I have no other
files open and over 2.5 Gigabytes of disk free and oodles of free RAM. Is anyone
aware of a bug like this in envi_get_statistics?

John McFee


--
Dr. John E. McFee
Defence Research Establishment Suffield
Box 4000, Medicine Hat, AB Canada T1A 8K6
(403) 544-4739 (voice) 544-4704 (fax)
Re: Bug in ENVI_GET_STATISTICS ? [message #12944 is a reply to message #12818] Wed, 23 September 1998 00:00 Go to previous message
Ray Sterner is currently offline  Ray Sterner
Messages: 10
Registered: December 1997
Junior Member
John McFee wrote:

> . . .
> I get an error at the "envi_get_statistics" line:
>
> % Array requires more memory than IDL can address.
> . . .

I got an error like that last week in IDL. When I checked into
it I found I was asking for something like 8 million Gigabytes.
I told our system guys I needed more memory.

Ray Sterner sterner@tesla.jhuapl.edu
The Johns Hopkins University North latitude 39.16 degrees.
Applied Physics Laboratory West longitude 76.90 degrees.
Laurel, MD 20723-6099
WWW Home page: http://fermi.jhuapl.edu/res/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Contour labels
Next Topic: Request for comparisons of IDL and Matlab

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

Current Time: Wed Oct 08 13:46:09 PDT 2025

Total time taken to generate the page: 0.00567 seconds