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

Home » Public Forums » archive » mosaic_doit - is it just me?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: mosaic_doit - is it just me? [message #55529 is a reply to message #55449] Thu, 23 August 2007 09:41 Go to previous messageGo to previous message
David Streutker is currently offline  David Streutker
Messages: 34
Registered: June 2005
Member
> 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.

Actually, its the DIMS keyword that subsets the input files. But
that's not what you're looking for...

> 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.

Crazy or not, that's what it's looking for. At least, that's how I've
done it. From the documentation, it appears this is called the "pixel
based" method. The help file seems to hint at a "georeferenced"
method that is more intelligent, but it doesn't provide much
explanation.

This ITTVIS techtip may be of use:
http://www.ittvis.com/services/techtip.asp?ttid=3336

> 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....

I think you're on the right track. (I'm assuming that your input
images are all georeferenced and have the same projection.) Use
ENVI_GET_MAP_INFO to get the UL coordinates of each input file. If
you're working in a straightforward projection (i.e. geographic), you
can convert these projection coordinates to map coordinates by hand.
If you're working in a more complicated projection, you may need to
create a temp image corresponding to your final product and use it
with ENVI_CONVERT_FILE_COORDINATES, like you said.

At least that's how I would go about it.

-David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: strings and memory usage
Next Topic: Re: reading envi file in IDL

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

Current Time: Wed Oct 08 19:12:18 PDT 2025

Total time taken to generate the page: 0.00428 seconds