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

Home » Public Forums » archive » Re: envi_setup_head for TIFF
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: envi_setup_head for TIFF [message #56167 is a reply to message #56153] Fri, 05 October 2007 07:30 Go to previous message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
On Oct 5, 7:29 am, L Rodrigues <leonardo.computa...@gmail.com> wrote:
> Hi everyone, I'm having a problem to show a TIFF image.
> After this code below, the image is shown with a shift to right in
> each line. (Near 1000 pixel shifted)
>
> envi_setup_head, FNAME = strFullFileName, NS = 4472, NL = 3263, NB =
> 1, $
> DATA_TYPE = self.type, OFFSET = 8,
> INTERLEAVE = 0, $
> BYTE_ORDER = 0, DATA_IGNORE_VALUE =
> -9999.0, $
> R_FID = fid, /OPEN, /NO_REALIZE
>
> envi_display_bands, [fid],[0]
>
> Someone had this problem ?
>
> Thx in advance.

My first thought was that you're setting the offset value incorrectly,
but its going to be hard to help you with this b/c there's no way we
can tell if those keywords are set to the correct value, since we know
nothing of the image you're opening. Here are two general suggestions
though:

1) Try opening the image using the GUI, maybe saving it out to a
temporary file, and seeing what kind of header ENVI creates for it.
Then you'll have an idea what the header values should be, assuming
ENVI opens it correctly.

2) Instead of using ENVI_SETUP_HEAD, use ENVI_OPEN_FILE. You won't
need to know all the header values with that command, and in fact
after you open the file you can use ENVI_FILE_QUERY to get the header
values.

Cheers,
Jeff
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Is there a way to undo a plot?
Next Topic: read data from sql

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

Current Time: Fri Oct 10 06:57:35 PDT 2025

Total time taken to generate the page: 0.96084 seconds