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

Home » Public Forums » archive » IDL code running error in envi environment(ENVI + IDL)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL code running error in envi environment(ENVI + IDL) [message #88854] Thu, 26 June 2014 01:51 Go to previous message
SUNIL CHOUDHURY is currently offline  SUNIL CHOUDHURY
Messages: 11
Registered: June 2014
Junior Member
Hello Everyone,

while running the code in ENVI + IDL , I am getting an error, and I am not able to under stand the reson why the code is not working properly.
Though I have written everything correctly.
Kindly help me.

I am attaching the code and the error which I am getting for reference.

CODE -

pro bstats
ENVI, /RESTORE_BASE_SAVE_FILES
ENVI_BATCH_INIT, LOG_FILE = 'batch.log'
ENVI_OPEN_FILE, 'C:\Users\Sachin\Desktop\atvshot.jpg',r_fid=fid
IF (fid EQ -1) THEN BEGIN
ENVI_BATCH_EXIT
RETURN
ENDIF
ENVI_FILE_QUERY, fid, NB = nb
pos = LINDGEN(nb)
ENVI_DOIT, 'envi_stats_doit', $
FID = fid, POS = pos, DIMS = dims, $
DMIN = dmin, DMAX = dmax, MEAN = mean, $
STDV = stdv, COMP_FLAG = 1
; make sure each one is defined on the return
PRINT, dmin, dmax, mean, stdv
; Exit ENVI
ENVI_BATCH_EXIT
END


Error which I am getting -

IDL>bstats
% Procedure was compiled while active: BSTATS. Returning.
% Compiled module: BSTATS.
% Can't continue from this point.
% Error occurred at: $MAIN$
% Execution halted at: $MAIN$
IDL>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: esri shape file
Next Topic: Problem with SPAWN command in IDL code

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

Current Time: Fri Oct 10 04:41:47 PDT 2025

Total time taken to generate the page: 0.56016 seconds