Hi,
I obtained the following code from ENVI help to perform atmospheric correction but this code gave an error - Could you please help me to solve the error -
Thank you!
****************************************************************************
Error:
% Restored file: ENVI_SPC.
% Procedure was compiled while active: ENVI_QUAC. Returning.
% Compiled module: ENVI_QUAC.
% Can't continue from this point.
% Execution halted at: $MAIN$
****************************************************************************
IDL CODE
PRO EXAMPLE_ENVI_QUAC_DOIT
compile_opt IDL2
; First restore all the base save files.
envi, /restore_base_save_files
; Initialize ENVI Classic in the batch mode
; and send all errors and warnings
; to the file batch.txt.
envi_batch_init, log_file='batch.txt'
; Open the input file
envi_open_file, 'JasperRidge98av.img', r_fid=fid
if (fid eq -1) then begin
envi_batch_exit
return
endif
; Set the keywords. Perform the
; QUick Atmospheric Correction on all
; pixels and all bands in the file.
envi_file_query, fid, dims=dims, nb=nb
pos = lindgen(nb)
out_name = 'JasperRidge98av_quac'
; Run the DOIT
envi_doit, 'envi_quac_doit', $
fid=fid, pos=pos, dims=dims, $
quac_sensor='AVIRIS', $
out_name=out_name, r_fid=r_fid
; Exit ENVI Classic
envi_batch_exit
END
****************************************************************************