<br><font size=2 face="sans-serif">I would also recommend using python,
but you can also give OpenEV a shot which has a "raster calculator"
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 <warmerdam@pobox.com></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 <ccerdeira@gmail.com></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>
> Hi!<br>
> <br>
> I have two operations to solve and I would like to know it it's possible
<br>
> to make those operations by using GDAL libraries/ FWTools.<br>
> <br>
> <br>
> *First operation:* Make a division between 2 rasters something like
a <br>
> typical "RASTER CALCULATOR" 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>
</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>
> *<br>
> Second operation:* Based on a raster mask (5x5) calculate statistic
<br>
> 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 | 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 | 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>