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
|