<s> import os <EOL> import scipy . ndimage <EOL> from osgeo import gdal <EOL> import ospybook as pb <EOL> in_fn = r"<STR_LIT>" <EOL> out_fn = r'<STR_LIT>' <EOL> in_ds = gdal . Open ( in_fn ) <EOL> in_data = in_ds . GetRasterBand ( <NUM_LIT:1> ) . ReadAsArray ( ) <EOL> out_data = scipy . ndimage . filters . uniform_filter ( <EOL> in_data , size = <NUM_LIT:3> , mode = '<STR_LIT>' ) <EOL> pb . make_raster ( in_ds , out_fn , out_data , gdal . GDT_Int32 ) <EOL> del in_ds </s>
