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

Home » Public Forums » archive » Re: layer stacking question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: layer stacking question [message #56535] Tue, 30 October 2007 02:42
woopik is currently offline  woopik
Messages: 18
Registered: September 2007
Junior Member
hi

i dont use xstart but as you can see in the dims array
the image began at X=0, i know that the gui interface will
read the same header and put X=1 BUT as i wrote : if you compare
.tif -> layer stacking with idl all is ok
there is a problem only with GUI version

in the header there is only georeferencing data , nothing else

i use envi 4.1 meaby there is a bug in this version ??
Re: layer stacking question [message #56536 is a reply to message #56535] Tue, 30 October 2007 02:21 Go to previous message
Tal is currently offline  Tal
Messages: 26
Registered: August 2007
Junior Member
Hi,

I assume that the answer is hidden in the header file.
compare the header of the input and the output layer (the fault one
generated by the ENVI GUI) and match line by line. throughout the 2
headers.
could it be related to the keyword xstart or ystart?

Tal
Re: layer stacking question [message #56563 is a reply to message #56536] Mon, 29 October 2007 02:14 Go to previous message
woopik is currently offline  woopik
Messages: 18
Registered: September 2007
Junior Member
but if i do that

data=ENVI_GET_DATA(fid=fid,dims=[-1,0,t_ns-1,0,t_nl-1] ,pos=0)
data=REVERSE(data,2)
ENVI_ENTER_DATA,data,r_fid=ofid

the layer is fliped verticaly i dont want that

look at this image iustring my problem
all seems good the left image dont need to be fliped
but look at the cursor location value

http://rapidshare.com/files/65959833/layers.jpg.html
Re: layer stacking question [message #56566 is a reply to message #56563] Sun, 28 October 2007 07:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
woopik@interia.pl writes:

> if i compare the pixel value (the same band)
> in the input and output file
>
> .tif -> layer stacking with idl all ok
> .tif -> layer stacking with envi GUI not ok

I think these confusing results can all be explained
by "ordering". IDL puts the (0,0) point at lower-left,
ENVI put it at upper left. When you write a TIF file
in IDL, if you don't reverse the Y values, the image
is almost always upside down, since TIFF seems to
use the same convention ENVI does. (And it doesn't
seem to matter HOW you set the ORDER keyword on
WRITE_TIFF.)

I think if you took your IDL layer and did this:

layer = Reverse(layer,2)

things will make more sense to you.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: layer stacking question [message #56567 is a reply to message #56566] Sun, 28 October 2007 05:07 Go to previous message
woopik is currently offline  woopik
Messages: 18
Registered: September 2007
Junior Member
and more

if i compare the pixel value (the same band)
in the input and output file

.tif -> layer stacking with idl all ok
.tif -> layer stacking with envi GUI not ok
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL and Leopard
Next Topic: IDL and OpenGL

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

Current Time: Wed Oct 08 19:50:49 PDT 2025

Total time taken to generate the page: 0.00565 seconds