在IDL中如何用 convert_modis_data对MOD03数据进行几何校正?
答案:2 悬赏:80 手机版
解决时间 2021-03-23 20:56
- 提问者网友:流星是天使的眼泪
- 2021-03-23 10:30
在IDL中如何用 convert_modis_data对MOD03数据进行几何校正?
最佳答案
- 五星知识达人网友:長槍戰八方
- 2021-03-23 10:49
IDL批处理实现MOD03处理
;forward_function envi_proj_create
PRO Modis_gef_batch
envi, /restore_base_save_files ;恢复ENVI sav文件
envi_batch_init, log_file=’batch.txt’ ;开始批处理模式
inpath = DIALOG_PICKFILE(/DIRECTORY, $
TITLE="select MODIS files path")
CD,inpath
filename = FILE_SEARCH('*.HDF')
;print,result
n = N_ELEMENTS(filename)
outpath = DIALOG_PICKFILE(/DIRECTORY, $
TITLE="select MODIS out path")
FOR i=0,n-1 DO BEGIN
in_name=inpath+filename[i]
out_name ='ReGeo'+filename[i]
;设置校正方法
;0 = Radiance \ Emissivity, 1 = Reflectance \ Emissivity
calib_method = 1
;设置输出方法
;0 = Standard, 1 = Projected, 2 = Standard and Projected
out_method = 1
;设置输出投影
output_projection = envi_proj_create(/geographic)
;在输出时设置去除蝴蝶效应
convert_modis_data, in_file=in_name, out_path=outpath, $
out_root=out_name, /l1b, out_method=out_method, $
out_proj=output_projection, calib_method=calib_method, /bowtie, $
sd_pos=[1,3], /no_msg, background=0.0
ENDFOR
envi_batch_exit
END
;forward_function envi_proj_create
PRO Modis_gef_batch
envi, /restore_base_save_files ;恢复ENVI sav文件
envi_batch_init, log_file=’batch.txt’ ;开始批处理模式
inpath = DIALOG_PICKFILE(/DIRECTORY, $
TITLE="select MODIS files path")
CD,inpath
filename = FILE_SEARCH('*.HDF')
;print,result
n = N_ELEMENTS(filename)
outpath = DIALOG_PICKFILE(/DIRECTORY, $
TITLE="select MODIS out path")
FOR i=0,n-1 DO BEGIN
in_name=inpath+filename[i]
out_name ='ReGeo'+filename[i]
;设置校正方法
;0 = Radiance \ Emissivity, 1 = Reflectance \ Emissivity
calib_method = 1
;设置输出方法
;0 = Standard, 1 = Projected, 2 = Standard and Projected
out_method = 1
;设置输出投影
output_projection = envi_proj_create(/geographic)
;在输出时设置去除蝴蝶效应
convert_modis_data, in_file=in_name, out_path=outpath, $
out_root=out_name, /l1b, out_method=out_method, $
out_proj=output_projection, calib_method=calib_method, /bowtie, $
sd_pos=[1,3], /no_msg, background=0.0
ENDFOR
envi_batch_exit
END
全部回答
- 1楼网友:过活
- 2021-03-23 12:21
IDL批处理实现MOD03处理
;forward_function envi_proj_create
PRO Modis_gef_batch
envi, /restore_base_save_files ;恢复ENVI sav文件
envi_batch_init, log_file=’batch.txt’ ;开始批处理模式
inpath = DIALOG_PICKFILE(/DIRECTORY, $
TITLE="select MODIS files path")
CD,inpath
filename = FILE_SEARCH('*.HDF')
;print,result
n = N_ELEMENTS(filename)
outpath = DIALOG_PICKFILE(/DIRECTORY, $
TITLE="select MODIS out path")
FOR i=0,n-1 DO BEGIN
in_name=inpath+filename[i]
out_name ='ReGeo'+filename[i]
;设置校正方法
;0 = Radiance \ Emissivity, 1 = Reflectance \ Emissivity
calib_method = 1
;设置输出方法
;0 = Standard, 1 = Projected, 2 = Standard and Projected
out_method = 1
;设置输出投影
output_projection = envi_proj_create(/geographic)
;在输出时设置去除蝴蝶效应
convert_modis_data, in_file=in_name, out_path=outpath, $
out_root=out_name, /l1b, out_method=out_method, $
out_proj=output_projection, calib_method=calib_method, /bowtie, $
sd_pos=[1,3], /no_msg, background=0.0
ENDFOR
envi_batch_exit
END
;forward_function envi_proj_create
PRO Modis_gef_batch
envi, /restore_base_save_files ;恢复ENVI sav文件
envi_batch_init, log_file=’batch.txt’ ;开始批处理模式
inpath = DIALOG_PICKFILE(/DIRECTORY, $
TITLE="select MODIS files path")
CD,inpath
filename = FILE_SEARCH('*.HDF')
;print,result
n = N_ELEMENTS(filename)
outpath = DIALOG_PICKFILE(/DIRECTORY, $
TITLE="select MODIS out path")
FOR i=0,n-1 DO BEGIN
in_name=inpath+filename[i]
out_name ='ReGeo'+filename[i]
;设置校正方法
;0 = Radiance \ Emissivity, 1 = Reflectance \ Emissivity
calib_method = 1
;设置输出方法
;0 = Standard, 1 = Projected, 2 = Standard and Projected
out_method = 1
;设置输出投影
output_projection = envi_proj_create(/geographic)
;在输出时设置去除蝴蝶效应
convert_modis_data, in_file=in_name, out_path=outpath, $
out_root=out_name, /l1b, out_method=out_method, $
out_proj=output_projection, calib_method=calib_method, /bowtie, $
sd_pos=[1,3], /no_msg, background=0.0
ENDFOR
envi_batch_exit
END
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯