Subsurface modeling with functional data