Apr-14-2020, 09:17 PM
Got it. The data is a slice out of a terrain map. I mistook it as a list of peaks. An island is a group of consecutive elevations above sea level. The original code is correct other than using the list for both elevation and sea level