Hello, I'm new to IDL and I'm trying to run a script to run band math on 300+ images. I can write the script to do this for one image, but was trying to find a way to do this on all the images.
Here is my script:
envi, /restore_base_save_files
envi_batch_init, log_file='batch.txt'
envi_open_file, 'H:\2009_Imagery\December\GeoTIFF\image.tif', r_fid=fid
if (fid eq -1) then begin
envi_batch_exit
return
endif
envi_file_query, fid, dims=dims
t_fid = [fid,fid]
pos = [2,3]
exp = 'b1*0.0126735'
out_name = 'H:\IDL\orthoqb02_09dec022041106'
envi_doit, 'math_doit', $
fid=t_fid, pos=pos, dims=dims, $
exp=exp, out_name=out_name, $
r_fid=r_fid
END
Thanks!
|