infer_resolution function

Infer resolution from "xifti" and surfaces