added resample method to be able to do on the fly resampling if two raster with different georefs are used.