prepraster function

Prepare the structural raster