What was the nodata value in the original?<br><br><div class="gmail_quote">On Fri, Oct 28, 2011 at 11:28 PM, Hermann Peifer <span dir="ltr">&lt;<a href="mailto:peifer@gmx.eu">peifer@gmx.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 27/10/2011 10:58, Chaitanya kumar CH wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
A vrt file can implement your requirements. It can create a &#39;lookup<br>
table&#39; to translate your pixel values...<br>
</blockquote>
<br>
Chaitanya,<br>
<br>
I just tried to translate an Int32 GeoTIFF with pixel values 111..523 into a byte-type GeoTIFF with values 1..44, using the LUT as indicated below.<br>
<br>
I noted that in the resulting GeoTIFF, the previous NODATA areas have now a pixel value of 1. Is this expected behaviour or rather some sort of &quot;over-extrapolation&quot; of my lookup table (as I would assume)  ?<br>

<br>
Thanks in advance, Hermann<br>
<br>
<br>
<br>
&lt;VRTDataset rasterXSize=&quot;8786&quot; rasterYSize=&quot;6443&quot;&gt;<br>
...<br>
    &lt;VRTRasterBand dataType=&quot;Int32&quot; band=&quot;1&quot;&gt;<br>
    &lt;NoDataValue&gt;0.<u></u>00000000000000E+00&lt;/<u></u>NoDataValue&gt;<br>
    &lt;ColorInterp&gt;Gray&lt;/<u></u>ColorInterp&gt;<br>
    &lt;ComplexSource&gt;<br>
      &lt;SourceFilename relativeToVRT=&quot;1&quot;&gt;ch00_form.<u></u>tif&lt;/SourceFilename&gt;<br>
      &lt;SourceBand&gt;1&lt;/SourceBand&gt;<br>
      &lt;SourceProperties RasterXSize=&quot;8786&quot; RasterYSize=&quot;6443&quot; DataType=&quot;Int32&quot; BlockXSize=&quot;256&quot; BlockYSize=&quot;256&quot; /&gt;<br>
      &lt;SrcRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;8786&quot; ySize=&quot;6443&quot; /&gt;<br>
      &lt;DstRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;8786&quot; ySize=&quot;6443&quot; /&gt;<br>
      &lt;LUT&gt;111:1,112:2,121:3,122:4,<u></u>123:5,124:6,131:7,132:8,...&lt;/<u></u>LUT&gt;<br>
    &lt;/ComplexSource&gt;<br>
  &lt;/VRTRasterBand&gt;<br>
&lt;/VRTDataset&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>