RasterSanityChecks function

Checks if the raster is properly formatted