def METHOD_NAME(self, lines):
    latList = []
    lonList = []
    lat_mean = np.nan
    lon_mean = np.nan
    for line in lines:
        lat, lon = self.get_latlon_from_latlon(line, check_color=False)
        if (lat is not None) and (lon is not None):
            latList.append(lat)
            lonList.append(lon)
    latArray = np.array(latList)
    lonArray = np.array(lonList)
    try:
        if len(latArray) > 0:
            lat_mean = latArray.mean()
        if len(lonArray) > 0:
            lon_mean = lonArray.mean()
    except:
        pass
    return lat_mean, lon_mean