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 #62512 is a reply to message #62510] Thu, 11 September 2008 07:01 Go to previous messageGo to previous message
Geo logo is currently offline  Geo logo
Messages: 3
Registered: September 2008
Junior Member
On Sep 11, 7:36 am, Spon <christoph.b...@gmail.com> wrote:
> On Sep 11, 6:13 am, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> 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.")
>
> So what happens when you do this? :
>
> input = uintarr(1000,1000)
> write_tiff, 'outimag.tif' , input
> input = fix(input)
>
> Not got access to IDL right now, but I don't know why it shouldn't
> work
> Chris

On Sep 11, 7:36 am, Spon <christoph.b...@gmail.com> wrote:
> On Sep 11, 6:13 am, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> 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.")
>
> So what happens when you do this? :
>
> input = uintarr(1000,1000)
> write_tiff, 'outimag.tif' , input
> input = fix(input)
>
> Not got access to IDL right now, but I don't know why it shouldn't
> work
> Chris

My question is I wanted write a integer data type tiff file, but when
I do this job, the result always byte type ,unsigned integer, or long
integer. I wanted to know how to write an integer data type tiff file?
Thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a 32/64-bit save file
Next Topic: tips for IDL 7?

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

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

Total time taken to generate the page: 8.87586 seconds