INFO - Please read the following information carefully: INFO - find_wl_contours2: A method for extracting shorelines that uses the sand water interface detected with the model to refine the threshold that's used to detect shorelines . - This is the default method used when there are enough sand pixels within the reference shoreline buffer. INFO - find_wl_contours1: This shoreline extraction method uses a threshold to differentiate between water and land pixels in images, relying on Modified Normalized Difference Water Index (MNDWI) values. However, it may inaccurately classify snow and ice as water, posing a limitation in certain environments. - This is only used when not enough sand pixels are detected within the reference shoreline buffer. INFO - --------------------------------------------------------------------------------------------------------------------- INFO - Extracting shorelines for L5 Minimum Shoreline Length: 500 INFO - WARNING: CoastSat has hard-coded the value for the minimum shoreline length for L7 to 200 INFO - Extracting shorelines for L7 Minimum Shoreline Length: 200 INFO - Extracting shorelines for L8 Minimum Shoreline Length: 500 INFO - L8 2025-07-24-22-13-17 cloud cover : 0.00% INFO - L8 2025-07-24-22-13-17: sand: 0.00% ,whitewater: 0.01% ,water: 57.82% INFO - L8 2025-07-24-22-13-17: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 19 shorelines. Number of shorelines after filtering shorelines: 3 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 600 INFO - Number of shoreline points after removing points within 300m of cloud mask 600 INFO - Number of shoreline points before removing points within 30m of no data pixel 600 INFO - Number of shoreline points after removing points within 30m of no data pixel 600 INFO - L8 2025-07-24-22-13-41 cloud cover : 0.00% INFO - L8 2025-07-24-22-13-41: sand: 0.00% ,whitewater: 0.02% ,water: 57.61% INFO - L8 2025-07-24-22-13-41: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 18 shorelines. Number of shorelines after filtering shorelines: 3 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 598 INFO - Number of shoreline points after removing points within 300m of cloud mask 598 INFO - Number of shoreline points before removing points within 30m of no data pixel 598 INFO - Number of shoreline points after removing points within 30m of no data pixel 598 INFO - L8 2025-07-31-22-19-29 cloud cover : 0.00% INFO - L8 2025-07-31-22-19-29: sand: 0.00% ,whitewater: 2.71% ,water: 56.19% INFO - L8 2025-07-31-22-19-29: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 20 shorelines. Number of shorelines after filtering shorelines: 4 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 676 INFO - Number of shoreline points after removing points within 300m of cloud mask 676 INFO - Number of shoreline points before removing points within 30m of no data pixel 676 INFO - Number of shoreline points after removing points within 30m of no data pixel 676 INFO - L8 2025-07-31-22-19-53 cloud cover : 0.00% INFO - L8 2025-07-31-22-19-53: sand: 0.00% ,whitewater: 0.59% ,water: 12.68% INFO - L8 2025-07-31-22-19-53: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 5 shorelines. Number of shorelines after filtering shorelines: 2 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 96 INFO - Number of shoreline points after removing points within 300m of cloud mask 96 INFO - Number of shoreline points before removing points within 30m of no data pixel 96 INFO - Number of shoreline points after removing points within 30m of no data pixel 95 INFO - L8 2025-08-09-22-13-25 cloud cover : 0.00% INFO - L8 2025-08-09-22-13-25: sand: 0.00% ,whitewater: 4.89% ,water: 52.69% INFO - L8 2025-08-09-22-13-25: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 18 shorelines. Number of shorelines after filtering shorelines: 4 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 688 INFO - Number of shoreline points after removing points within 300m of cloud mask 688 INFO - Number of shoreline points before removing points within 30m of no data pixel 688 INFO - Number of shoreline points after removing points within 30m of no data pixel 688 INFO - L8 2025-08-09-22-13-49 cloud cover : 0.00% INFO - L8 2025-08-09-22-13-49: sand: 0.00% ,whitewater: 5.10% ,water: 52.35% INFO - L8 2025-08-09-22-13-49: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 18 shorelines. Number of shorelines after filtering shorelines: 4 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 688 INFO - Number of shoreline points after removing points within 300m of cloud mask 688 INFO - Number of shoreline points before removing points within 30m of no data pixel 688 INFO - Number of shoreline points after removing points within 30m of no data pixel 688 INFO - Extracting shorelines for L9 Minimum Shoreline Length: 500 INFO - L9 2025-08-01-22-13-18 cloud cover : 0.88% INFO - L9 2025-08-01-22-13-18: sand: 0.00% ,whitewater: 4.33% ,water: 54.51% INFO - L9 2025-08-01-22-13-18: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 27 shorelines. Number of shorelines after filtering shorelines: 4 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 595 INFO - Number of shoreline points after removing points within 300m of cloud mask 528 INFO - Number of shoreline points before removing points within 30m of no data pixel 528 INFO - Number of shoreline points after removing points within 30m of no data pixel 528 INFO - L9 2025-08-01-22-13-42 cloud cover : 0.00% INFO - L9 2025-08-01-22-13-42: sand: 0.00% ,whitewater: 4.82% ,water: 54.47% INFO - L9 2025-08-01-22-13-42: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 28 shorelines. Number of shorelines after filtering shorelines: 4 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 675 INFO - Number of shoreline points after removing points within 300m of cloud mask 675 INFO - Number of shoreline points before removing points within 30m of no data pixel 675 INFO - Number of shoreline points after removing points within 30m of no data pixel 675 INFO - L9 2025-08-08-22-19-36 cloud cover : 0.00% INFO - L9 2025-08-08-22-19-36: sand: 0.00% ,whitewater: 12.23% ,water: 44.70% INFO - L9 2025-08-08-22-19-36: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 22 shorelines. Number of shorelines after filtering shorelines: 2 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 660 INFO - Number of shoreline points after removing points within 300m of cloud mask 660 INFO - Number of shoreline points before removing points within 30m of no data pixel 660 INFO - Number of shoreline points after removing points within 30m of no data pixel 660 INFO - L9 2025-08-08-22-20-00 cloud cover : 0.00% INFO - L9 2025-08-08-22-20-00: sand: 0.00% ,whitewater: 0.11% ,water: 20.11% INFO - L9 2025-08-08-22-20-00: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 ERROR - L9 2025-08-08-22-20-00: Could not map shoreline due to error no valid pixels found in reference shoreline buffer. Traceback (most recent call last): File "/home/ubuntu/.local/lib/python3.12/site-packages/coastsat/SDS_shoreline.py", line 1061, in extract_shorelines shoreline, t_mndwi = find_shoreline_optical( ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.local/lib/python3.12/site-packages/coastsat/SDS_shoreline.py", line 216, in find_shoreline_optical contours_mwi, t_mndwi = find_wl_contours1(im_mndwi, cloud_mask, im_ref_buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.local/lib/python3.12/site-packages/coastsat/SDS_shoreline.py", line 1426, in find_wl_contours1 raise ValueError("no valid pixels found in reference shoreline buffer.") ValueError: no valid pixels found in reference shoreline buffer. INFO - L9 2025-08-24-22-19-42 cloud cover : 0.00% INFO - L9 2025-08-24-22-19-42: sand: 0.00% ,whitewater: 3.08% ,water: 50.33% INFO - L9 2025-08-24-22-19-42: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 7 shorelines. Number of shorelines after filtering shorelines: 3 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 608 INFO - Number of shoreline points after removing points within 300m of cloud mask 608 INFO - Number of shoreline points before removing points within 30m of no data pixel 608 INFO - Number of shoreline points after removing points within 30m of no data pixel 608 INFO - L9 2025-08-24-22-20-06 cloud cover : 0.00% INFO - L9 2025-08-24-22-20-06: sand: 0.00% ,whitewater: 0.00% ,water: 18.49% INFO - L9 2025-08-24-22-20-06: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 ERROR - L9 2025-08-24-22-20-06: Could not map shoreline due to error no valid pixels found in reference shoreline buffer. Traceback (most recent call last): File "/home/ubuntu/.local/lib/python3.12/site-packages/coastsat/SDS_shoreline.py", line 1061, in extract_shorelines shoreline, t_mndwi = find_shoreline_optical( ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.local/lib/python3.12/site-packages/coastsat/SDS_shoreline.py", line 216, in find_shoreline_optical contours_mwi, t_mndwi = find_wl_contours1(im_mndwi, cloud_mask, im_ref_buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.local/lib/python3.12/site-packages/coastsat/SDS_shoreline.py", line 1426, in find_wl_contours1 raise ValueError("no valid pixels found in reference shoreline buffer.") ValueError: no valid pixels found in reference shoreline buffer.