From acbfa048c904ee8d796f186088ae2a3805fceb02 Mon Sep 17 00:00:00 2001 From: John J Czaplewski Date: Mon, 28 Mar 2016 15:43:31 -0500 Subject: [PATCH] Fix map algebra example The previous example was borrowed from the GDAL documentation, but does not produce the expected output. The amended version produces a raster that averages the values of two rasters. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54cd95e..8a10a98 100644 --- a/README.md +++ b/README.md @@ -206,7 +206,7 @@ __Raster calculation (map algebra)__ Average two rasters: - gdal_calc.py -A input1.tif -B input2.tif --outfile=output.tif --calc="(A+B)/2" + gdal_calc.py -A input1.tif -B input2.tif --outfile=output.tif --calc="(A/2+B/2)" Add two rasters: