def remove_water_classes (numpy_pointcloud ):
    """Fetch the Classification field of the given cloud and remove all points with a value == 9"""

    if (numpy_pointcloud.has_fields ("Classification" )):
        numpy_pointcloud.points = numpy_pointcloud.points[numpy_pointcloud.get_fields ("Classification" ) != 9]
        return numpy_pointcloud
    return numpy_pointcloud