Preserve base
and loffset
arguments in resample
#7444
Merged
base
and loffset
arguments in resample
#7444