change resample method with scale ratio