Re: mosaic_doit - is it just me? [message #55535 is a reply to message #55449] |
Thu, 23 August 2007 08:42  |
Jeff N.
Messages: 120 Registered: April 2005
|
Senior Member |
|
|
On Aug 22, 6:48 pm, Matt <mmsmith1...@gmail.com> wrote:
> i have 5 continental files that i want to mosaic into a global file.
>
> i got the mosaic_doit function to run and i get all of my continents
> piled up on the upper left corner. i assume that this is because my i
> defined these two variables like this:
>
> x0=[0,0,0,0,0]
> y0=[0,0,0,0,0]
>
> i assumed that this was asking for the first pixel that you want to
> process in each file. apparently i was wrong. does anyone with more
> experience know if this is why i'm getting all my continents piled on
> top of one another?
>
> is it possible that IDL/ENVI is asking me to place the files manually
> on the map space? i guess the left-most part of the north america file
> would be x0=0, y0=0, but i have no idea where austrial/eurasia,south
> america/africa is! is the software really asking me to do this
> manually? that would be crazy.
>
> i have used the envi_convert_file_coordinates command before, but it
> requires a reference FID. Is there a way to create a map structure
> with an associated FID to use as a reference? i can then extract the
> UL from each file and conver to file coordinates associated with a
> global map strucutre of the same dimensions as my output file. i dont
> really know what i'm talking about here with this suggestion, but
> somebody else does....
>
> any input/suggestions?
>
> thanks.
> matt s.
I'm not sure what's going on either, but here are two suggestions:
1) check to see if x0 & y0 should contain the xstart & ystart values
from the ENVI header. These won't be zero if the images you're using
are subsets of larger images. I'm not sure if that's the problem, but
its worth a check.
2) you can get a map info structure for an image file by calling
ENVI_GET_MAP_INFO using the FID keyword.
Hope that helps,
Jeff
|
|
|