From: warmerdam@pobox.com (Frank Warmerdam)
Date: Wed, 03 Dec 2003 13:40:03 -0500
Subject: [Tiff] Double Precision TIFF images
In-Reply-To: <p05210601bbf330c9eca6@[153.32.48.223]>
References: <00e701c3b4e1$45706160$b701a8c0@igor> <20031127174033.GB27842@ak4719.spb.edu> <p05210601bbf330c9eca6@[153.32.48.223]>
Message-ID: <3FCE2E03.3000609@pobox.com>

Chris Cox wrote:
> 
> Does anyone have a double precision floating point RGB TIFF image that 
> they could share with me for testing?
> Preferably it wouldn't be too large, and would have some recognizable 
> content.

Chris,

I have prepared a smallish sample for you in double precision at:

   http://pobox.com/~warmerdam/rgb_dbl.tif

Approximately 1MB.  It is the bowling sample but with the values converted
to double precision and rescaled to 0.0 to 1.0.

I produced it with this Python script using my GDAL library (based on libtiff).

import gdal
import gdalnumeric
from Numeric import *

img = gdalnumeric.LoadFile( 'rgba.tif' )

img = img / 255.0

img = img.astype(Float64)
img = img[0:3]

gdalnumeric.SaveArray( img, 'rgba_dbl.tif' )


Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



