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

Home » Public Forums » archive » QUERY_TIFF fails even when READ_TIFF succeeds!
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
QUERY_TIFF fails even when READ_TIFF succeeds! [message #89387] Mon, 06 October 2014 06:34
tom.grydeland is currently offline  tom.grydeland
Messages: 51
Registered: September 2012
Member
What the title says. I have some in-house generated TIFF files which I can read back perfectly fine in a number of systems, including READ_TIFF in IDL 8.2.2 and 8.3.

QUERY_TIFF, however, does not recognize the file format. This is a nuisance, because I'd like to use the GEOTIFF keyword to extract the relevant GeoTIFF tags from the file.

-----------------------------------------
IDL> help, read_tiff('Z_24_16t.tif')
<Expression> INT = Array[6000, 6000]
IDL> print, query_tiff('Z_24_16t.tif', tiffinfo, geo=geoinfo)
0
IDL> help, tiffinfo, geoinfo
TIFFINFO UNDEFINED = <Undefined>
GEOINFO UNDEFINED = <Undefined>
IDL> help, !version
** Structure !VERSION, 8 tags, length=104, data length=100:
ARCH STRING 'x86_64'
OS STRING 'linux'
OS_FAMILY STRING 'unix'
OS_NAME STRING 'linux'
RELEASE STRING '8.2.2'
BUILD_DATE STRING 'Jan 23 2013'
MEMORY_BITS INT 64
FILE_OFFSET_BITS
INT 64
----------------------------------------

(Output from IDL 8.3 is identical, except for the RELEASE and BUILD_DATE tags in the !version structure)

Tiffinfo reports the following:

----------------------------------------
TIFFReadDirectory: Warning, Z_24_16t.tif: unknown field with tag 33550 (0x830e) encountered.
TIFFReadDirectory: Warning, Z_24_16t.tif: unknown field with tag 33922 (0x8482) encountered.
TIFFReadDirectory: Warning, Z_24_16t.tif: unknown field with tag 42113 (0xa481) encountered.
TIFF Directory at offset 0x1b21fdc (28450780)
Image Width: 6000 Image Length: 6000
Tile Width: 400 Tile Length: 400
Bits/Sample: 16
Sample Format: signed integer
Compression Scheme: AdobeDeflate
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Planar Configuration: single image plane
Tag 33550: 0.000833,0.000833,0.000000
Tag 33922: 0.000000,0.000000,0.000000,-65.000416,-15.000416,0.000000
Tag 42113: -32768
----------------------------------------

(The unrecognized tags are the GeoTIFF-related tags ModelPixelScaleTag, ModelTiePointTag and GDALNoData, none of which should be a problem)

If anyone from Exelis are listening, this is something which should be eminently fixable.

Regards,

Tom Grydeland
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: question about 'Unable to allocate memory: to make array error' message ( and I think there is enough memory)
Next Topic: Re: saturated adiabatic lapse rate?

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

Current Time: Wed Oct 08 15:23:39 PDT 2025

Total time taken to generate the page: 0.00487 seconds