From the ENVI help (mosaic_doit chapter), i quote the following statement:
"You can mosaic and automatically resample individual bands, entire files, and multi-resolution georeferenced images. "
How do I turn on the resampling when using a multi-resolution dataset (OMEGA)? When I change the pixel_size argument to my preferred pizel size, the function will merely patch together the images in their original resolutions and relabel the pixel size in the projection info to the specified value. This results in a messed up mosaic ofcourse. I've tried resampling using resize_doit and it works, but results in rather prominent seams which I figure can be avoided by using the auto-resampling in mosaic_doit. Note that manual mosaicing using the ENVI widget works perfectly. Here's how I invoke mosaic_doit (I use the georef_mosaic_setup add-on):
georef_mosaic_setup, fids=fid, out_ps=ps, dims=dims, xsize=xsize, ysize=ysize,x0=x0, y0=y0, map_info=map_info
ENVI_DOIT, 'MOSAIC_DOIT', dims=dims, fid=fid, pos=pos, /GEOREF, MAP_INFO=map_info, OUT_NAME=datapath+'MOSAIC.dat', OUT_DT=4, xsize=xsize, ysize=ysize, x0=x0,$
y0=y0, pixel_size=ps,background=0,see_through_val=see_through_val, use_see_through=use_see_through
|