def get_coord(data_object, variable, data):
    """
    Find a specified coord

    :param data_object:
    :param variable: 
    :param data:
    :return:
    """
    from iris.exceptions import CoordinateNotFoundError
    if variable in [data_object.name(), data_object.standard_name,
        data_object.long_name, 'default']:
        return data
    else:
        if variable.startswith('search:'):
            number_of_points = float(variable.split(':')[1])
            for coord in data_object.coords():
                if coord.shape[0] == number_of_points:
                    break
        else:
            try:
                coord = data_object.coord(variable)
            except CoordinateNotFoundError:
                return None
        return coord
