Thank you for your help!
The program opens ENVI and save an empty file, so I've changed the script from 'open_data_file' with 'envi_select' and the program stop working after the changes..
Here is the error! Syntax error LINE 8,
Execution halted at : $ MAINS$
envi_select [,/band_only][,dims=(-1, 0, 1022, 0, 1024)][,fid=1][,file_type=envi_file_type('ENVI Standard')][,pos=0][,/roi][,title='23_04_2015_09h43m04_K0012_B1_B12_geom_resampled']
I can't open the fisrt band which i want to save..
Here is the script i've wrote again:
pro IDl_startup
compile_opt IDL2
ENVI, /restore_base_save_files
envi_batch_init, log_file='batch.log'
input_path = 'D:\Rares\k12'
envi_file_query, fid, file_type=file_type
envi_select [,/band_only][,dims=(-1, 0, 1022, 0, 1024)][,fid=1][,file_type=envi_file_type('ENVI Standard')][,pos=0][,/roi][,title='23_04_2015_09h43m04_K0012_B1_B12_geom_resampled']
Cd, 'D:\Bands\Band_1'
envi_doit, 'cf_doit', fid=did, pos=pos, dims=dims, $
out_name = "Bandm13", r_fid = r_fid
envi_batch_exit
end
I'm waiting for your answer, thanks again!
|