IDL reading tiff files [message #87674] |
Fri, 21 February 2014 20:15  |
TANG Jian
Messages: 4 Registered: February 2014
|
Junior Member |
|
|
Hello everyone,
I have a problem when using read_tiff to read tif file with IDL 8.2.3(win32).
It looks like this
IDL> image = read_tiff('2013092118.tif',/VERBOSE)
% READ_TIFF: Warning: Unknown field with tag 317 (0x13d) encountered
% READ_TIFF: AdobeDeflate compression support is not configured
When I use query_tiff , it returned with 0 which means failure...
But when I asked a friend of mine who use IDL(8.2) on a mac, with simple command " read_tiff('18.tif') ", she can get data read.
but if she use query_tiff, she still get 0 return. It is very weird.
I am wondering if it has something to do with tiff library.
the test file is here
ttps://www.dropbox.com/s/4xz32rsiseyzabk/test.tif
for further information in this file
it has only one layer,which is 7200*3600, and the data is arranged in 16-bit unsigned ints
if you have the same problem or you have any solution for this, please share with us.
Thank you for your time.
|
|
|
Re: IDL reading tiff files [message #87676 is a reply to message #87674] |
Sat, 22 February 2014 03:19  |
TANG Jian
Messages: 4 Registered: February 2014
|
Junior Member |
|
|
here are some tiff_dump info
IDL> tiff_dump,'test.tif'
% Compiled module: TIFF_DUMP.
Tiff File: byte order=II, Version = 42
*** IFD 0 starting at offset: 8
14 directory entries
ImageWidth (256)UShort = 7200
ImageLength (257)UShort = 3600
BitsPerSample (258)UShort = 16
Compression (259)UShort = 8
PhotometricInterpretation (262)UShort = 1
StripOffsets (273)ULong<Cnt=3600> = 29054 30176 31284 32431 33544 34698 35835 36969 38119 39292 40463 41675 42896 44126 45355 46592
SamplesPerPixel (277)UShort = 1
RowsPerStrip (278)UShort = 1
StripByteCounts (279)ULong<Cnt=3600> = 1122 1108 1147 1113 1154 1137 1134 1150 1173 1171 1212 1221 1230 1229 1237 1263
PlanarConfiguration (284)UShort = 1
Predictor (317)UShort = 2
SampleFormat (339)UShort = 1
<PrivateTag> (33550)Double<Cnt=3> = 0.050000000 0.050000000 0.00000000
<PrivateTag> (33922)Double<Cnt=6> = 0.00000000 0.00000000 0.00000000 -180.00000 90.000000 0.00000000
IDL>
在 2014年2月22日星期六UTC+8下午12时15分25秒,TANG Jian写道:
> Hello everyone,
>
>
>
> I have a problem when using read_tiff to read tif file with IDL 8.2.3(win32).
>
>
>
> It looks like this
>
>
>
> IDL> image = read_tiff('2013092118.tif',/VERBOSE)
>
> % READ_TIFF: Warning: Unknown field with tag 317 (0x13d) encountered
>
> % READ_TIFF: AdobeDeflate compression support is not configured
>
>
>
> When I use query_tiff , it returned with 0 which means failure...
>
>
>
> But when I asked a friend of mine who use IDL(8.2) on a mac, with simple command " read_tiff('18.tif') ", she can get data read.
>
> but if she use query_tiff, she still get 0 return. It is very weird.
>
> I am wondering if it has something to do with tiff library.
>
>
>
> the test file is here
>
> ttps://www.dropbox.com/s/4xz32rsiseyzabk/test.tif
>
>
>
> for further information in this file
>
> it has only one layer,which is 7200*3600, and the data is arranged in 16-bit unsigned ints
>
>
>
> if you have the same problem or you have any solution for this, please share with us.
>
>
>
> Thank you for your time.
|
|
|