lunch envi function in 'batch mode' [message #46327] |
Thu, 17 November 2005 01:55 |
S.Cogliati
Messages: 3 Registered: August 2005
|
Junior Member |
|
|
Hi, I'm developing an Idl application that utilize an Envi function
(Envi_compute_sun_angles) so I lunch envi in batch mode in this way:
;start ENVI batch_mode
OpenW, batch_lun, 'batch_log_from_ENVI.txt', /Get_LUN
ENVI, /restore_base_save_files
ENVI_INIT, /batch_mode, batch_unit=batch_lun
free_lun,batch_lun
;compute the elevation angle
elev=ENVI_COMPUTE_SUN_ANGLES (Day, Month, Year, GMTtime, Lat, Lon)
I'm sure that when I compile the project the Envi rutines are loaded,
but the first time that I run the code Idl stops at the Envi function
call instruction and send me this error message:
% XMANAGER: Caught unexpected error from client application. Message
follows...
% Variable is undefined: ENVI_COMPUTE_SUN_ANGLES.
% Execution halted at: RHO_PANEL 47
C:\OO_import_v20.0mod\rho_panel.pro
% COMPUTE_STAT2 50
C:\OO_import_v20.0mod\compute_stat2.pro
% XMANAGER_EVLOOP_STANDARD 478
C:\RSI\IDL61\lib\xmanager.pro
% XMANAGER 708
C:\RSI\IDL61\lib\xmanager.pro
% GUI_PRO 27
C:\OO_import_v20.0mod\gui.pro
% $MAIN$
After the first time that Idl stops there code runs correctly.
Regards, S.Cogliati
|
|
|