Hi,
I am new to ENVI and IDL. I would like to do reprojection of 700 files of MODIS images. From MODIS Conversion Toolkit, I could do reprojection. But it takes only one file. Therefore, i would like to know how to add batch processing in the following program.
I want to reproject to UTM, WGS 84, Zone 43.
Could someone help me, please....................
Thanks in advance
Shijo
This is program from MCTK
-------------------------------------------------
;Level 1B example
pro test_batch_modis_conversion_level_1b
compile_opt idl2
modis_l1b_file = 'C:\MOD021KM.A2007079.0855.005.2007079160027.hdf'
;The specified output location MUST end in the appropriate path
;separator for your OS
output_location = 'C:\MCTK_Output\'
output_rootname = 'level_1b'
;Calibration method schema is:
;0 = Radiance \ Emissivity, 1 = Reflectance \ Emissivity
calib_method = 1
; Output method schema is:
;0 = Standard, 1 = Projected, 2 = Standard and Projected
out_method = 1
output_projection = envi_proj_create(/geographic)
;Use bow tie correction during the projection process
convert_modis_data, in_file=modis_l1b_file, out_path=output_location, $
out_root=output_rootname, /l1b, out_method=out_method, $
out_proj=output_projection, calib_method=calib_method, /bowtie, $
sd_pos=[1,3], /no_msg, background=0.0
end
|