<br><font size=2 face="sans-serif">I would also recommend using python,
but you can also give OpenEV a shot which has a &quot;raster calculator&quot;
within its' GUI. It is available in FWtools but if you have trouble starting
it from there, you can also install/run it from OSGeo4W.</font>
<br>
<br><font size=2 face="sans-serif">good luck,</font>
<br><font size=2 face="sans-serif">Trent</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Frank Warmerdam &lt;warmerdam@pobox.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Cecília Cerdeira &lt;ccerdeira@gmail.com&gt;</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">fwtools@lists.maptools.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">02/03/2010 04:36 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [FWTools] Fwd: Help - It´s possible
to make raster calculations with GDAL library?</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">fwtools-bounces@lists.maptools.org</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Cecília Cerdeira wrote:<br>
&gt; Hi!<br>
&gt; <br>
&gt; I have two operations to solve and I would like to know it it's possible
<br>
&gt; to make those operations by using GDAL libraries/ FWTools.<br>
&gt; <br>
&gt; <br>
&gt; *First operation:* Make a division between 2 rasters something like
a <br>
&gt; typical &quot;RASTER CALCULATOR&quot; on a GIS environment.<br>
<br>
Cecília,<br>
<br>
The usual approach suggested for such an operation is to use the<br>
numpy Python scripting environment to operate on images as arrays.<br>
A relatively simple example of something vaguely similar is available<br>
at:<br>
<br>
 &nbsp; </font></tt><a href=http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/classify.py><tt><font size=2>http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/classify.py</font></tt></a><tt><font size=2><br>
<br>
Conveniently FWTools includes Python with the necessary addons for this<br>
to work.<br>
<br>
&gt; *<br>
&gt; Second operation:* Based on a raster mask (5x5) calculate statistic
<br>
&gt; values on a raster with a bigger resolution (1x1).<br>
<br>
Generally you would need to write your own C/C++ program to do this,<br>
using GDAL for raster data reading and writing.<br>
<br>
Best regards,<br>
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up &nbsp; | Frank Warmerdam, warmerdam@pobox.com<br>
light and sound - activate the windows | </font></tt><a href=http://pobox.com/~warmerdam><tt><font size=2>http://pobox.com/~warmerdam</font></tt></a><tt><font size=2><br>
and watch the world go round - Rush &nbsp; &nbsp;| Geospatial Programmer
for Rent<br>
<br>
_______________________________________________<br>
FWTools mailing list<br>
FWTools@lists.maptools.org<br>
</font></tt><a href=http://lists.maptools.org/mailman/listinfo/fwtools><tt><font size=2>http://lists.maptools.org/mailman/listinfo/fwtools</font></tt></a><tt><font size=2><br>
</font></tt><a href=http://fwtools.maptools.org/><tt><font size=2>http://fwtools.maptools.org/</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>