MCTK批处理MODIS 09A1产品
MCTK批处理MODIS L2 swath产品
MODIS批量处理,知乎
MODIS批量处理,CSDN
;头
pro modis_mctk_try
compile_opt idl2
e = envi()
envi, /restore_base_save_files
envi_batch_init, log_file='batch.txt'
;选择需要批处理文件所在的文件夹
fn= dialog_pickfile(title="open the mod04 data",/directory) ;打开数据目录
outpath = 'D:\data\data1\' ;输出路径
files=file_search(fn,"*.hdf",count=nums)
bridges = mctk_create_bridges()
;方法1
inpath = 'D:\data\data1\'
files = file_search(inpath,"*.hdf",count=nums)
outpath = 'D:\data\data1\' ;输出路径
PRINT, '开始处理数据 : ', SYSTIME()
;方法2
inpath = Dialog_pickfile(/directory, title='Select MOD files inputpath')
cd, inpath
filenames = file_search('*.hdf')
n = N_elements(filenames)
print, n
;选择处理后文件另存的文件夹位置
outpath = Dialog_pickfile(/directory, title='Select MOD_Geo files outpath')
PRINT, '开始处理数据 : ', SYSTIME()