comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » how to use Mosaic_doit procedure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
how to use Mosaic_doit procedure [message #54663] Fri, 29 June 2007 06:00
wlz is currently offline  wlz
Messages: 3
Registered: June 2007
Junior Member
I want to Mosaic the SRTM data,I used the "mosaic_doit" procedure,but
it doesn't work.Can you tell me why? my code as followed:

PRO MOSIC_SRTM
Compile_opt strictarr
File_Path='F:\WorkSpace\SRTM\test\'
Filelist=file_search(File_Path+'*.img',count=count)
Envi, /restore_base_save_files
Envi_batch_init, log_file='batch.txt'
;
; Open the input files
;
mosaic_image='F:\WorkSpace\SRTM\mosaic.img'
mosaic_image1='F:\WorkSpace\SRTM\mosaic1.img'
FOR i=0,count-1 DO BEGIN
envi_open_file, mosaic_image, r_fid=mosaic_fid
envi_file_query,mosaic_fid,dims=mosaic_dims,ns=m_ns
;print,mosaic_dims
;print,'m_ns=',m_ns
envi_open_file,Filelist[i],r_fid=f_fid
envi_file_query,f_fid,dims=f_dims
mapinfo=ENVI_GET_MAP_INFO(fid=mosic_fid)
m_fid=[mosaic_fid,f_fid]

pos=[0,0]
dims=[[mosaic_dims],[f_dims]]
;print,dims
Envi_doit,'mosaic_doit',fid=m_fid,pos=pos,dims=dims,/
GEOREF,MAP_INFO=mapinfo,$
out_name=mosaic_image1,out_bname='Mosaic
image',background=255,R_FID=r_fid;,Out_DT=2,PIXEL_SIZE=3.0
print,'r_fid = ',r_fid
ENDFOR

Envi_batch_exit
END
[Message index]
 
Read Message
Previous Topic: about DXF format
Next Topic: Re: One Millionth Visitor is Astonomer at Glasgow University...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:36:16 PDT 2025

Total time taken to generate the page: 0.64145 seconds