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

Home » Public Forums » archive » write_tiff integer format
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
write_tiff integer format [message #62425] Wed, 10 September 2008 20:33 Go to next message
Geo logo is currently offline  Geo logo
Messages: 3
Registered: September 2008
Junior Member
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.
Thanks
Re: write_tiff integer format [message #62505 is a reply to message #62425] Thu, 11 September 2008 09:05 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Geo logo wrote:
> 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.
> Thanks

well, from the help file is seems to be impossible.
If you have negative values, you might want to save as float..

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Undefined variables in structures
Next Topic: Re: Contour Issues... Help please

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

Current Time: Fri Oct 10 03:22:14 PDT 2025

Total time taken to generate the page: 1.44110 seconds