Resampling a volume and Image Spacing

I think the esayest way is covert the volume to numpy data,and then you can do what you want.