def check_within_bounds(data_bounds, lon, lat):
    """Checks that location values are within specified boundaries

    Args:
        data_bounds <DataBoundInfo>: Contains adjusted data boundry
                                     information
        lon <float>: The longitude to check
        lat <float>: The latitude to check

    Returns:
        <bool>: True - If within the bounds
                False - If not within the bounds
    """

    if (data_bounds.north_lat > lat and data_bounds.south_lat < lat and
            data_bounds.east_lon > lon and data_bounds.west_lon < lon):

        return True

    return False