Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/g/s/gsdview-HEAD/gsdview/gdalbackend/gdalqt4.py   gsdview(Download)
        stats = (None, None, None, None)
 
        if band and gdalsupport.hasFastStats(band):
            stats = gdalsupport.SafeGetStatistics(band, True, True)
 
    def _dataRange(band, data=None):
        if band and gdalsupport.hasFastStats(band):
            vmin, vmax, mean, stddev = gdalsupport.SafeGetStatistics(band,
                                                                     True)
            if None not in (vmin, vmax, mean, stddev):

src/g/s/gsdview-HEAD/gsdview/gdalbackend/widgets.py   gsdview(Download)
        # .. _`GDAL Trac`: http://trac.osgeo.org/gdal
 
        if gdalsupport.hasFastStats(self.band):
            vmin, vmax, mean, stddev = self.band.GetStatistics(True, True)
            self.setStatistics(vmin, vmax, mean, stddev)