Global shoreline mapping tool from satellite imagery
Contributions from @2320sharon and @DanieTheron to improve the download updates and the cloud mask.
Main changes:
Improved Sentinel-2 cloud masking using the s2cloudless collection on Google Earth Engine https://developers.google.com/earth-engine/datasets/catalog/COPERNICUS_S2_CLOUD_PROBABILITY. This should make Sentinel-2 imagery much more usable for shoreline mapping.
Some minor updates including:
Update to the workflow to download and preprocess Sentinel-2 imagery. Makes sure the bands that come at different resolutions (10m, 20m and 60m) are reprojected onto the same pixel grid with gdal_warp.
CoastSat 2.0 MAJOR update:
SDS_download.py
and SDS_preprocess.py
were made.check_detection
and adjust_detection
) are turned off. Changes to SDS_shoreline.py
were made.SDS_transects.compute_intersections_QC()
.SDS_transects.reject_outliers()
for the shoreline time-series and functions to compute seasonal and monthly averages, SDS_transects.seasonal_averages()
and SDS_transects.monthly_averages()
.Updates from previous release:
minor bugfix as Inf values were crashing the classifier
Bugfix when merging overlapping S2 images in SDS_download.py
New functionality that allows users to plot the histogram of MNDWI pixel intensities and adjust the threshold that is used for shoreline detection as show below:
this functionality can be activated by setting adjust_detection
to True
(default value set to False
).