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 
Return to the default flat view Create a new topic Submit Reply
Re: layer stacking question [message #56566 is a reply to message #56563] Sun, 28 October 2007 07:06 Go to previous messageGo 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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and Leopard
Next Topic: IDL and OpenGL

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

Current Time: Sat Oct 11 00:57:38 PDT 2025

Total time taken to generate the page: 1.76293 seconds