Just pair the min and max values of the source raster to the min and max of the target raster.<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 10:50 PM, Nikolaos Hatzopoulos <span dir="ltr"><<a href="mailto:nhatzop@gmail.com">nhatzop@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How you define the min max from this documentation: <a href="http://www.gdal.org/gdal_vrttut.html" target="_blank">http://www.gdal.org/gdal_vrttut.html</a><br>
<br>--Nikos<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Thu, Feb 9, 2012 at 10:59 PM, Chaitanya kumar CH <span dir="ltr"><<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>></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">Nikolaos,<br><br>The gdalenhance utility is not really recommended. I don't know the config file format.<br>
<br>GDAL's VRT driver[1] supports a look-up-table that works with linear interpolation. In it, you specify pairs of corresponding values in source and destination rasters. The intermediate source values are interpolated linearly.<br>
<br>[1]: <a href="http://www.gdal.org/gdal_vrttut.html" target="_blank">http://www.gdal.org/gdal_vrttut.html</a><br><br><div class="gmail_quote"><div><div>On Fri, Feb 10, 2012 at 6:31 AM, Nikolaos Hatzopoulos <span dir="ltr"><<a href="mailto:nhatzop@gmail.com" target="_blank">nhatzop@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>so I have created a config file for gdalenhance<br><br>color.config:<br>
<br>1:Band -100:ScaleMin 11000:ScaleMax 0:3.667:30 30:1.667:60 60:0.833:120 120:0.429:190 190:0.231:255 <br>
2:Band -100:ScaleMin 11000:ScaleMax 0:3.667:30 30:1.667:60 60:0.833:120 120:0.429:190 190:0.231:255 <br>
3:Band -100:ScaleMin 11000:ScaleMax 0:3.667:30 30:1.667:60 60:0.833:120 120:0.429:190 190:0.231:255<br><br>is it valid..? is it going to make a linear interpolation of the colors???<br><br><br><br>--Nikos<br>
<br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br>
<br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>17.2416N 80.1426E<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>