A localized contour tree method for deriving