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

Home » Public Forums » archive » Re: ENVI does a dumb thing reading a TIFF file with a palette included
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 does a dumb thing reading a TIFF file with a palette included [message #53826 is a reply to message #53824] Wed, 02 May 2007 12:21 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Hyer writes:

> I apologize for the offtopic post, but maybe someone here knows an
> ENVI trick I am missing. I have an XY array of data, category data
> with values from 0-16 + 254=NODATA. I have a color table ginned up
> specifically to display this data. I write a TIFF file, like so:
>
> tvlct,r,g,b,/get ; load palette values from color table
> write_tiff,filename,image,r=r,g=g,b=b

If that what ENVI wants, why not let it have it?

tvlct, r, g, b, /get
write_tiff, filename, [[[r[image]]], [[g[image]]], [[b[image]]]], 3

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: Re: structures, arrays of pointers and assignment
Next Topic: 3D registration

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

Current Time: Sat Oct 11 22:25:57 PDT 2025

Total time taken to generate the page: 1.04001 seconds