Modeling ground-to-air ranging errors using a local elevation mask