Carlos,<br><br>This is a specialized case.<br>You can do this programatically by using 'derived bands' in the VRT format[1].<br><br>It could be a lot easier to do this using a desktop GIS application like QuantamGIS [2]. QuantamGIS has a raster calculator utility that can do a lot of arithmetic operations like this.<br>
<br>[1]: <a href="http://www.gdal.org/gdal_vrttut.html">http://www.gdal.org/gdal_vrttut.html</a><br>[2]: <a href="http://www.qgis.org/">http://www.qgis.org/</a><br>
<br><div class="gmail_quote">On Sat, Dec 10, 2011 at 5:15 AM, SupportLists <span dir="ltr"><<a href="mailto:supportlists@qlands.com" target="_blank">supportlists@qlands.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;">
Hi,<br>
<br>
I need to perform classification and combination of three ascii grids. This means for example:<br>
<br>
1. Separate the data of each cell in the grid among three classes<br>
Layer1 Classes: A1,B1,C1<br>
Layer2 Classes: A2,B2,C2<br>
Layer3 Classes: A3,B3,C3<br>
<br>
2. Then Combine the three classified grids into one so each cell has a combination of the 27 possible.<br>
Cell 1: A1A2A3<br>
Cell 2: A1B2A3<br>
....<br>
Cell max: C3C2C1.<br>
<br>
3. Assign a color to each combination and generate a final GeoTIFF.<br>
<br>
How if possible can I do this with GDAL?<br>
<br>
Many thanks,<br>
Carlos.<br>
<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/gdal-dev</a><br>
</blockquote></div><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>