Just to add my 2 cents on this. I've done this sort of thing in the
past by using gdal_rasterize to set all pixels which are outside the
polygon(s) of interest to nodata. Then I use a very simplistic Python
script to dump all of the pixel values to STDOUT and redirect to a csv
file. It would be p
n Wed, Aug 26, 2009 at 9:37 AM, Jose Gomez-Dans wrote:
> 2009/8/26 Dylan Beaudette
>>
>> ndeed. The current (C++) version of Starspan is more or less unsupported.
>> I tend to use an older, stabler, version-- but have become frustrated with
>> it in recent studies. I think that the current maintai
Hi,
2009/8/26 Dylan Beaudette
> ndeed. The current (C++) version of Starspan is more or less unsupported. I
> tend to use an older, stabler, version-- but have become frustrated with it
> in recent studies. I think that the current maintainer Jon Greenberg is
> working on an R implementation-- h
On Wednesday 26 August 2009, Emilio Mayorga wrote:
> Jose,
>
> Thanks for your pointer to your web site. Looks like you have some
> very interesting and useful code there. I've been trying to do
> something similar, though I use raster "zone" grids rather than vector
> layers; I'd be happy to share
Jose,
Thanks for your pointer to your web site. Looks like you have some
very interesting and useful code there. I've been trying to do
something similar, though I use raster "zone" grids rather than vector
layers; I'd be happy to share that code, but it's too messy at this
point. I'll write a blo
Hi,
There is also a tool called Starspan than uses GDAL and GEOS to do
arbitrary zonal stats.
Dylan
On Wed, Aug 26, 2009 at 7:13 AM, Jose Gomez-Dans wrote:
> Hi,
>
> 2009/8/20 questions anon
>>
>> Can anyone get me started on a script that can -
>>
>> -Open a shapefile
>>
>> -Open many raster
Hi,
2009/8/20 questions anon
> Can anyone get me started on a script that can -
>
> -Open a shapefile
>
> -Open many rasters
>
> -Calculate the mean and standard deviation of those rasters within the
> shapefile region, but is able to ignore areas of zeros or NoData
>
> -Output the mean and
'anon',
You can use the GDAL Python bindings for this. Refer to
http://trac.osgeo.org/gdal/wiki/GdalOgrInPython
You can also use any other language you like shown at
http://www.gdal.org/#index_bindings
On Thu, Aug 20, 2009 at 5:44 PM, questions anon wrote:
> Can anyone get me started on a script
Can anyone get me started on a script that can -
-Open a shapefile
-Open many rasters
-Calculate the mean and standard deviation of those rasters within the
shapefile region, but is able to ignore areas of zeros or NoData
-Output the mean and standard deviation to a table
Otherwise any tu