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

Home » Public Forums » archive » Re: write_tiff integer format
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: write_tiff integer format [message #62423] Wed, 10 September 2008 22:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Geo logo writes:

> I am a newcomer of IDL, when I try use write_tiff to write a integer
> type tiff, the result always wrong.
>
> input = intarr(1000,1000)
> write_tiff, 'outimag.tif' , input
>
> the result would be a byte type tiff file, and when I use
>
> write_tiff, 'outimag.tif' , input,/short, result will be unsigned
> int
>
> write_tiff, 'outimag.tif' , input,/long, result will be long integer.
>
> could somebody help me about how to output a integer type tiff file.

The more relevant question might be, given that life totally
sucks, how does one convert back and forth between signed
and unsigned integers?

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
Previous Topic: IDL calls C calls IDL?
Next Topic: Re: Some questions about "axis"

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

Current Time: Sat Oct 11 01:13:12 PDT 2025

Total time taken to generate the page: 1.12017 seconds