Re: [gdal-dev] Raster statistics

2017-08-09 Thread Eric Wenger ARA/SED
: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Raster statistics Thanks Chris for your reply. I forgot to mention I'm not using GDAL with Python. I use it with C++ and/or C#. Paul [http://www.bontepaarden.nl/bontepaarden/images/newButton.png]Paul Meems Release manager, configuration ma

Re: [gdal-dev] Raster statistics

2017-08-03 Thread Paul Meems
Thanks Chris for your reply. I forgot to mention I'm not using GDAL with Python. I use it with C++ and/or C#. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwin

Re: [gdal-dev] Raster statistics

2017-08-03 Thread Chris Waigl
I would not use gdal for this particular task. I presume you have the band data in a 2D numpy array. Then I’d get the 80th percentile for example with np.percentile() and use a boolean expression to generate a mask for the array (droneraster > perc80value ). Chris -- Christine (Chris) Waigl -

[gdal-dev] Raster statistics

2017-08-03 Thread Paul Meems
I have a drone raster file which I want to use for some calculation. Before the calculation, I need to loose some extreme values. I want to do something like a percentile calculation where you get all values, order them and loose the top 10%. For this, I need to get all values first which can be sl