"bujji 写道:
"
> Robert,
>
> I had seen MOSAIC_DOIT but I am having 'n' number of files in a
> directory and all the files have to be mosaiced automatically. I am
> facing a problem with the x0, y0 and pos arguments
>
> Regards,
> Prahlad V
>
> Robert Moss wrote:
>> MOSAIC_DOIT is what you are looking for.
>>
>> r
>>
>> bujji wrote:
>>> Hello All,
>>>
>>> I am using IDL6.3 on windows. I am having some raw data sets. using
>>> ENVI routines I had georeferenced the data. Now I wud like to Mosaic
>>> the data.
>>> How to Mosaic the data automatically using ENVI and IDL routines(the
>>> data is georeferenced).
>>>
>>> Please suggest me a suitable way.
>>>
>>> Regards,
>>> Prahlad V
hello ,this was a question troubling me 3 years ago. Through
MOSAIC_DOIT can been used to mosaic the images based on the Envi
platform,but you should provide goe_information as mentioned above. So
the Goe_information is the key question. how to get the
goe_information, Envi doesn't provide.You can use the follow code ,
which is imbedded in Noaa image processing system programed by me .
;-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *//
;-*-*-*- mosaic the image -*-*-*-*-*-*//
;-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *//
pro map_mosaic1,fileName1,fileName2,out_Name,dir
cd,dir
;//-*-*-*-*-*-*-*-*-*-*-*-*-合并前两幅图*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
envi_open_data_file, fileName1,r_fid=fid1;,/NO_REALIZE
if (fid1 eq -1) then begin
envi_batch_exit
return
end
envi_open_data_file, fileName2,r_fid=fid2;,/NO_REALIZE
if (fid2 eq -1) then begin
envi_batch_exit
return
end
fids = [fid1,fid2]
out_ps = [1100,1100];RS
print , 'selecting file over !!'
;////////use georef_mosaic_setup to get the information of the files
georef_mosaic_setup, fids=fids, out_ps=out_ps, dims=dims, xsize=xsize,
ysize=ysize,$
x0=x0, y0=y0, map_info=map_info
;/////set the necessary parameter
use_see_through = [[1L],[1]]
see_through_val = [[0L],[0]]
pos = [[0,1,2,3,4],[0,1,2,3,4]]
print,xsize,ysize
print , 'To select the output file !!'
;/////////Select the output file
;//////////do mosaic
envi_doit, 'mosaic_doit', fid=fids, pos=pos, dims=dims,
out_name=out_Name, $
r_fid=out_fid1, xsize=xsize, ysize=ysize, x0=x0, y0=y0, georef=1,
map_info=map_info, $
out_dt=4, pixel_size=out_ps, background=0,
see_through_val=see_through_val, $
use_see_through=use_see_through
envi_file_mng, id=fid1, /remove
envi_file_mng, id=fid2, /remove
envi_file_mng, id=out_fid1, /remove
end
|