function

created function, deleted unnecessary stuff, write new raster in memory