Bug in ENVI_GET_STATISTICS ? [message #12818] |
Tue, 08 September 1998 00:00  |
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)
|
|
|