Use this procedure to enable and disable the ENVI Classic batch status window. The status window is used to show the progress of the processing routines.
ENVI_BATCH_STATUS_WINDOW allows you to precisely control the status window and to enable and disable the status window multiple times in a single batch mode session. In addition, the keyword NO_STATUS_WINDOW in the ENVI_BATCH_INIT procedure controls the initial state of the status window.
Syntax
ENVI_BATCH_STATUS_WINDOW [, /OFF] [, /ON]
Keywords
OFF (optional)
Set this keyword to prevent display of the ENVI Classic processing status window.
ON (optional)
Set this keyword to allow display of the ENVI Classic processing status window.
Example
The following example runs statistics on the file bhtmref.img with and without the status window.
First, initialize ENVI Classic in batch mode with the status window present. Open the file bhtmref.img and use ENVI_STATS_DOIT to perform basic statistical calculations. During this process, the status window will be displayed. Next, turn off the status window and perform the same statistics processing. This time, the status window is not displayed. After each statistical calculation, print the mean value.
PRO EXAMPLE_ENVI_BATCH_STATUS_WINDOW
compile_opt IDL2
envi, /restore_base_save_files
envi_batch_init, log_file='batch.txt'
envi_open_file, 'bhtmref.img', r_fid=fid
if (fid eq -1) then begin
envi_batch_exit
return
endif
envi_file_query, fid, dims=dims, nb=nb
pos = lindgen(nb)
envi_doit, 'envi_stats_doit', fid=fid, pos=pos, $
dims=dims, comp_flag=1, mean=mean
print, 'Mean', mean
envi_batch_status_window, /off
envi_doit, 'envi_stats_doit', fid=fid, pos=pos, $
dims=dims, comp_flag=1, mean=mean
print, 'Mean', mean
envi_batch_exit
END
API Version
4.3