import math


def valid(f):
    """Checks if the given coordinate is valid
    Args:
        f (float): Coordinate of a HeightCoordinate

    Returns:
        boolean: whether or not the coordinate is valid
    """
    return math.isfinite(f)