Re: [gdal-dev] How to-- gdal_calc.py

2011-12-20 Thread Stephen Mather
Thanks Travis, Steve On Tue, Dec 20, 2011 at 10:24 AM, Travis Kirstine wrote: > Stephen, > > I haven't used the gdal_calc tool but if you use python you can easily > convert the image bands to a set of numpy arrays and use all the > great numpy functions. > > See the val_repl.py sample to conv

Re: [gdal-dev] How to-- gdal_calc.py

2011-12-20 Thread Travis Kirstine
Stephen, I haven't used the gdal_calc tool but if you use python you can easily convert the image bands to a set of numpy arrays and use all the great numpy functions. See the val_repl.py sample to convert a image to a numpy array(s) http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/val_r

[gdal-dev] How to-- gdal_calc.py

2011-12-20 Thread Stephen Mather
Hi All, Is there any casting (for lack of a better word) needed when using gdal_calc to take, e.g. a series of 16-bit images and perform float functions against them? Best, Steve ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo