[转载]利用IDL程序重采样(resample)MODIS影像
(2011-07-12 09:02:52)
标签:
转载 |
分类: 3S |
1、inputs.pro
calcu,2008144,2008233,'G:tangronglinTangrlmod03'
2、calcu.pro
pro calcu,startday,endday,path;,prefix
a=systime(1)
daystart=long(startday)
dayend=long(endday)
while(daystart le dayend) do begin
arg1=strtrim(string(daystart),2)
suffix='SolarZenith'
;-----------------------------------------------------------
file=file_search(path+'MOD03.A'+arg1+'.'+suffix+'.tif',COUNT=count1);to
be modified
;-----------------------------------------------------------
if count1 ne 0 then begin
fill_value=255
example_resize_doit,arg1,path,suffix,fill_value
endif
suffix='View_time'
file=file_search(path+arg1+'.*_'+suffix+'.tif',COUNT=count1);to be
modified
;-----------------------------------------------------------
if count1 ne 0 then begin
fill_value=255
example_resize_doit,arg1,path,suffix,fill_value
endif
daystart=daystart+1
endwhile
b=systime(1)
print,b-a
end
stop
3、example_resize_doit.pro
pro example_resize_doit,day,path,suffix,fill_value
file=file_search(path+'MOD03.A'+day+'.'+suffix+'.tif')
envi_open_file, file, r_fid=fid
close,/all
end