Thanks Travis,<br><br>Steve<br><br><br><div class="gmail_quote">On Tue, Dec 20, 2011 at 10:24 AM, Travis Kirstine <span dir="ltr"><<a href="mailto:traviskirstine@gmail.com">traviskirstine@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Stephen,<br>
<br>
I haven't used the gdal_calc tool but if you use python you can easily<br>
convert the image bands to a set of numpy arrays and use all the<br>
great numpy functions.<br>
<br>
See the val_repl.py sample to convert a image to a numpy array(s)<br>
<a href="http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/val_repl.py" target="_blank">http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/val_repl.py</a><br>
<br>
Numpy Stuff:<br>
<a href="http://www.scipy.org/Numpy_Example_List#head-7eb5ca476fca411db1db64bc024b7c0c94e42143" target="_blank">http://www.scipy.org/Numpy_Example_List#head-7eb5ca476fca411db1db64bc024b7c0c94e42143</a><br>
<br>
Regards<br>
<div><div></div><div class="h5"><br>
<br>
On 20 December 2011 10:11, Stephen Mather <<a href="mailto:mather.stephen@gmail.com">mather.stephen@gmail.com</a>> wrote:<br>
> Hi All,<br>
> Is there any casting (for lack of a better word) needed when using<br>
> gdal_calc to take, e.g. a series of 16-bit images and perform float<br>
> functions against them?<br>
><br>
> Best,<br>
> Steve<br>
><br>
</div></div>> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org">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><br>
</blockquote></div><br>