This is focal statistics program by gdal python.