[Gdal-dev] gdal_translate problem with NITF RGBA image

John Bowen jbowen at BlackbirdTech.com
Thu May 17 09:46:29 EDT 2007


I'm trying to convert a 16bpp, 4 band NITF image into a GeoTiff and have
not been able to figure out the arguments necessary to properly convert
it.  Accompanying the NITF image is a text description of the image,
which contains (parts edited out with <snip> and </snip> for brevity:

 

version = "AA";

generationTime = 2006-12-16T01:13:10.000000Z;

productOrderId = "005590231010_01_P002";

productCatalogId = "901001000E567E00";

childCatalogId = "202001000E567D00";

imageDescriptor = "Basic1B";

bandId = "Multi";

panSharpenAlgorithm = "None";

numRows = 2187;

numColumns = 6876;

productLevel = "LV1B";

productType = "Basic";

numberOfLooks = 1;

radiometricLevel = "Corrected";

bitsPerPixel = 16;

compressionType = "None";

BEGIN_GROUP = BAND_B

<snip>

 

</snip>

END_GROUP = BAND_B

BEGIN_GROUP = BAND_G

<snip>

 

</snip>

END_GROUP = BAND_G

BEGIN_GROUP = BAND_R

<snip>

 

</snip>

END_GROUP = BAND_R

BEGIN_GROUP = BAND_N

<snip>

 

</snip>

END_GROUP = BAND_N

outputFormat = "NITF20";

BEGIN_GROUP = IMAGE_1

<snip>

 

</snip>

END_GROUP = IMAGE_1

END;

 

When I try to convert it with gdal_translate, the resulting TIF file is
not viewable.  The image produced contains 1 pixel wide bands of various
colors, that from a 1x zoom level appear to be gray.  The output of
tiffinfo on this GeoTiff file produces the following:

 

TIFFReadDirectory: Warning, test.tif: unknown field with tag 34264
(0x85d8) encountered.

TIFFReadDirectory: Warning, test.tif: unknown field with tag 34735
(0x87af) encountered.

TIFFReadDirectory: Warning, test.tif: unknown field with tag 34737
(0x87b1) encountered. 

TIFFReadDirectory: Warning, test.tif: unknown field with tag 42112
(0xa480) encountered.

TIFF Directory at offset 0x72cd27e (120377982)

  Image Width: 6876 Image Length: 2187

  Bits/Sample: 16

  Sample Format: unsigned integer 

  Compression Scheme: None

  Photometric Interpretation: min-is-black

  Extra Samples: 3<unspecified, unspecified, unspecified>

  Samples/Pixel: 4

  Rows/Strip: 1

  Planar Configuration: separate image planes 

  Tag 34264:
0.000033,-0.000000,0.000000,-77.147100,-0.000001,-0.000024,0.000000,38.8
59040,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,1.0
00000

  Tag 34735:
1,1,0,5,1024,0,1,2,1025,0,1,1,2048,0,1,4326,2049,34737,7,0,2054,0,1,9102


  Tag 34737: WGS 84|

  Tag 42112: <GDALMetadata>

  <Item name="NITF_FHDR">NITF02.00</Item>

  <Item name="NITF_CLEVEL">06</Item>

  <Item name="NITF_STYPE"></Item> 

  <Item name="NITF_OSTAID">DG</Item>

  <Item name="NITF_FDT">16011310ZDEC06</Item>

 

  <snip>

 

  </snip>

 

</GDALMetadata>

 

Any ideas how to convert this file to GeoTiff correctly?

 

Thanks,

John

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070517/08a26c08/attachment.html


More information about the Gdal-dev mailing list