[Gdal-dev] Gdal + python for map algebra script?

Dylan Beaudette dylan.beaudette at gmail.com
Tue Jan 9 20:49:43 EST 2007


On Tuesday 09 January 2007 14:36, Webb Sprague wrote:
> Hi all,
>
> I would like to use python gdal to write some simple raster analysis
> scripts, but I am having a hard time getting started or knowing where
> to get started.
>
> My basic idea:  (1) delimit a single band raster file with a vector
> polygon, (2) calculate the mean ("m") and stdev ("s") for the pixels
> the area, (3) normalize each pixel within the polygon by subtracting m
> and dviding by s, (4) writing out the new raster file, with
> modifications within the delimiting polygon.
>
> I would like a command line tool with filename as input (that is easy).
>
> If someone could point me to a tutorial or something that would be great.
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev

Hi again Webb,

I highly recommend GRASS and starspan for these types of analysis. Check 
around in the archives for the GDAL and GRASS lists for some fun examples.

cheers,

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341



More information about the Gdal-dev mailing list