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

Home » Public Forums » archive » Re: Tiff images with "short" Palette?
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: Tiff images with "short" Palette? [message #73867 is a reply to message #73866] Tue, 07 December 2010 12:13 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matt writes:

> So I'm really creating these great geotiffs in IDL, but I'm having
> problems with the palettes that are attached.
>
> I think I've boiled my problem down to the way I'm making my tif
> files. For the sake of argument, I am creating the tif with a 2
> element color palette, but IDL appears to be creating a 255 color
> palette in the background and storing a bunch of information that I
> don't want.

Yes, I think a 256 element vectors are stored as the color
palette.

> Does anyone know of a way to get around this problem?

What problem are we talking about, exactly? The fact
that the return vectors are 256 elements in length?
Then just load the first two elements of these vectors
in the color table.

Is that what you are looking for?

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
Read Message
Previous Topic: Tiff images with "short" Palette?
Next Topic: Saving Large(ish) PDF's with IMAGE() crashes IDL completely

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

Current Time: Sat Oct 11 08:45:21 PDT 2025

Total time taken to generate the page: 0.80169 seconds