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-26-10-06-01 cloud cover : 0.00% INFO - L8 2025-07-26-10-06-01: sand: 0.00% ,whitewater: 0.00% ,water: 48.36% INFO - L8 2025-07-26-10-06-01: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 1 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 88 INFO - Number of shoreline points after removing points within 300m of cloud mask 88 INFO - Number of shoreline points before removing points within 30m of no data pixel 88 INFO - Number of shoreline points after removing points within 30m of no data pixel 87 INFO - L8 2025-08-02-10-11-50 cloud cover : 0.00% INFO - L8 2025-08-02-10-11-50: sand: 0.00% ,whitewater: 0.00% ,water: 48.88% INFO - L8 2025-08-02-10-11-50: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 2 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 84 INFO - Number of shoreline points after removing points within 300m of cloud mask 84 INFO - Number of shoreline points before removing points within 30m of no data pixel 84 INFO - Number of shoreline points after removing points within 30m of no data pixel 83 INFO - L8 2025-08-02-10-12-14 cloud cover : 0.00% INFO - L8 2025-08-02-10-12-14: sand: 0.00% ,whitewater: 0.00% ,water: 48.53% INFO - L8 2025-08-02-10-12-14: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 2 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 84 INFO - Number of shoreline points after removing points within 300m of cloud mask 84 INFO - Number of shoreline points before removing points within 30m of no data pixel 84 INFO - Number of shoreline points after removing points within 30m of no data pixel 83 INFO - L8 2025-08-11-10-06-09 cloud cover : 0.00% INFO - L8 2025-08-11-10-06-09: sand: 0.00% ,whitewater: 0.00% ,water: 49.48% INFO - L8 2025-08-11-10-06-09: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 1 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 88 INFO - Number of shoreline points after removing points within 300m of cloud mask 88 INFO - Number of shoreline points before removing points within 30m of no data pixel 88 INFO - Number of shoreline points after removing points within 30m of no data pixel 87 INFO - L8 2025-08-18-10-11-58 cloud cover : 0.00% INFO - L8 2025-08-18-10-11-58: sand: 0.00% ,whitewater: 0.00% ,water: 49.31% INFO - L8 2025-08-18-10-11-58: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 1 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 90 INFO - Number of shoreline points after removing points within 300m of cloud mask 90 INFO - Number of shoreline points before removing points within 30m of no data pixel 90 INFO - Number of shoreline points after removing points within 30m of no data pixel 89 INFO - L8 2025-08-18-10-12-22 cloud cover : 0.00% INFO - L8 2025-08-18-10-12-22: sand: 0.00% ,whitewater: 0.00% ,water: 49.40% INFO - L8 2025-08-18-10-12-22: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 1 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 88 INFO - Number of shoreline points after removing points within 300m of cloud mask 88 INFO - Number of shoreline points before removing points within 30m of no data pixel 88 INFO - Number of shoreline points after removing points within 30m of no data pixel 87 INFO - Extracting shorelines for L9 Minimum Shoreline Length: 500 INFO - L9 2025-08-03-10-06-03 cloud cover : 0.00% INFO - L9 2025-08-03-10-06-03: sand: 0.00% ,whitewater: 0.00% ,water: 47.24% INFO - L9 2025-08-03-10-06-03: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 2 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 91 INFO - Number of shoreline points after removing points within 300m of cloud mask 91 INFO - Number of shoreline points before removing points within 30m of no data pixel 91 INFO - Number of shoreline points after removing points within 30m of no data pixel 90 INFO - L9 2025-08-10-10-11-57 cloud cover : 0.00% INFO - L9 2025-08-10-10-11-57: sand: 0.00% ,whitewater: 0.00% ,water: 49.40% INFO - L9 2025-08-10-10-11-57: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 1 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 91 INFO - Number of shoreline points after removing points within 300m of cloud mask 91 INFO - Number of shoreline points before removing points within 30m of no data pixel 91 INFO - Number of shoreline points after removing points within 30m of no data pixel 89 INFO - L9 2025-08-10-10-12-20 cloud cover : 0.00% INFO - L9 2025-08-10-10-12-20: sand: 0.00% ,whitewater: 0.00% ,water: 49.40% INFO - L9 2025-08-10-10-12-20: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 1 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 93 INFO - Number of shoreline points after removing points within 300m of cloud mask 93 INFO - Number of shoreline points before removing points within 30m of no data pixel 93 INFO - Number of shoreline points after removing points within 30m of no data pixel 91 INFO - L9 2025-08-19-10-05-50 cloud cover : 0.00% INFO - L9 2025-08-19-10-05-50: sand: 0.00% ,whitewater: 0.00% ,water: 0.00% INFO - L9 2025-08-19-10-05-50: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 ERROR - L9 2025-08-19-10-05-50: 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-19-10-06-14 cloud cover : 0.00% INFO - L9 2025-08-19-10-06-14: sand: 0.00% ,whitewater: 0.00% ,water: 48.97% INFO - L9 2025-08-19-10-06-14: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 2 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 85 INFO - Number of shoreline points after removing points within 300m of cloud mask 85 INFO - Number of shoreline points before removing points within 30m of no data pixel 85 INFO - Number of shoreline points after removing points within 30m of no data pixel 83 INFO - L9 2025-08-26-10-12-02 cloud cover : 0.00% INFO - L9 2025-08-26-10-12-02: sand: 0.00% ,whitewater: 0.00% ,water: 48.97% INFO - L9 2025-08-26-10-12-02: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 1 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 88 INFO - Number of shoreline points after removing points within 300m of cloud mask 88 INFO - Number of shoreline points before removing points within 30m of no data pixel 88 INFO - Number of shoreline points after removing points within 30m of no data pixel 87 INFO - L9 2025-08-26-10-12-26 cloud cover : 0.00% INFO - L9 2025-08-26-10-12-26: sand: 0.00% ,whitewater: 0.00% ,water: 49.22% INFO - L9 2025-08-26-10-12-26: Less than 50 sand pixels detected within reference shoreline buffer. Using find_wl_contours1 INFO - Number of shorelines before removing shorelines < 500m: 1 shorelines. Number of shorelines after filtering shorelines: 1 shorelines INFO - Number of shoreline points before removing points within 300m of cloud mask 89 INFO - Number of shoreline points after removing points within 300m of cloud mask 89 INFO - Number of shoreline points before removing points within 30m of no data pixel 89 INFO - Number of shoreline points after removing points within 30m of no data pixel 87