code clips raster to extent but does not yet clip by mask.