<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I can't make the NITF file available, however the relevant portion of the BANDSB TRE should look like (with the type following in parentheses):</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>        RAD_QUANTITY      = 'SPECTRAL RADIANCE       '  (BCS-A)<br>
</span>
<div>        RAD_QUANTITY_UNIT = 'S'                                      (BCS-A)<br>
</div>
<div>        SCALE_FACTOR      = '8.0000000E+01'     ( IEEE-754 32-bit float)<br>
</div>
<div>        ADDITIVE_FACTOR   = '0.0000000E+00'  ( IEEE-754 32-bit float)<br>
</div>
<div>        ROW_GSD           = '0030.00'                                     (BCS-N)<br>
</div>
<div>        ROW_GSD_UNIT      = 'M'                                          (BCS-A)<br>
</div>
<div>        COL_GSD           = '0030.00'                                       (BCS-N)<br>
</div>
<div>        COL_GSD_UNIT      = 'M'                                            (BCS-A)<br>
</div>
<div>        SPT_RESP_ROW      = '-------'                                     (BCS-N)<br>
</div>
<div>        SPT_RESP_UNIT_ROW = 'M'                                     (BCS-A)<br>
</div>
<div>        SPT_RESP_COL      = '-------'                                       (BCS-N)<br>
</div>
<div>        SPT_RESP_UNIT_COL = 'M'                                       (BCS-A)<br>
</div>
<div>        DATA_FLD_1        = '                                                '(unsigned integer)<br>
</div>
<div>        EXISTENCE_MASK    = '2306867200'                    (unsigned integer)<br>
</div>
<span>        RAD_ADJ_SURF      = 'DETECTOR                '              (BCS-A)<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Brad Hards <bradh@frogmouth.net><br>
<b>Sent:</b> Thursday, October 10, 2019 4:47 PM<br>
<b>To:</b> Edson, Adam Robert <are131@psu.edu>; gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> RE: [gdal-dev] python GDAL issue</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.x_MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle19
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-AU" link="blue" vlink="purple">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="">Can you make the NITF file available? Can you at least post the relevant part of the BANDSB TRE from the file?</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span style="">Brad</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> gdal-dev <gdal-dev-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Edson, Adam Robert<br>
<b>Sent:</b> Friday, 11 October 2019 6:09 AM<br>
<b>To:</b> gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> [gdal-dev] python GDAL issue</span></p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">I am trying to parse a TRE in a NITF following the spec found here (<a href="https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnsgreg.nga.mil%2Fdoc%2Fview%3Fi%3D4829%26month%3D10%26day%3D10%26year%3D2019&data=02%7C01%7Care131%40psu.edu%7C6e7b7d4bbfff4e39787508d74dc32079%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C637063372780065649&sdata=m7L1GEbwkDX5fdJxaCeya4zP5Dg34luNAYUdqA6tx%2Bo%3D&reserved=0" originalsrc="https://nsgreg.nga.mil/doc/view?i=4829&month=10&day=10&year=2019" shash="cEpWbsO9QBUvsqP6wqTRwZRXUZulkwPB9j92SxDElGIEetuWHVxllBhM8x4wzrkvAsMxIpNxBLabdQRu1uJi/8KciTueLyQ8Fjltt6BI9jTV+EGJPJ/ao6AsN1J1oJlW5odTeLp6dOa2QfWa34n7GJwpNQub/2fXeXSUv0aXFHw=" target="_blank">https://nsgreg.nga.mil/doc/view?i=4829&month=10&day=10&year=2019</a>).
 Specifically, I am having trouble with the BANDSB TRE with the EXISTENCE_MASK field. It is supposed to be an unsigned int that can be used as bit flags for data following after it. I am currently getting garbage at this location from the gdal.getMetadata('TRE')
 call. Any help would be appreciated.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Adam</span></p>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
</div>
</body>
</html>