From 0dae5a83bbed668df5c3e0c5061e372a34e69891 Mon Sep 17 00:00:00 2001 From: kvos Date: Thu, 22 Dec 2022 15:19:29 +1100 Subject: [PATCH] bugfix when calling SDS_tools.convert_epsg() in SDS_shoreline.py --- coastsat/SDS_shoreline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coastsat/SDS_shoreline.py b/coastsat/SDS_shoreline.py index b358ae3c..265c27bf 100644 --- a/coastsat/SDS_shoreline.py +++ b/coastsat/SDS_shoreline.py @@ -697,7 +697,7 @@ def process_shoreline(contours, cloud_mask, im_nodata, georef, image_epsg, setti idx_cloud = np.array([(idx_cloud[0][k], idx_cloud[1][k]) for k in range(len(idx_cloud[0]))]) # convert to world coordinates and same epsg as the shoreline points coords_cloud = SDS_tools.convert_epsg(SDS_tools.convert_pix2world(idx_cloud, georef), - image_epsg, settings['output_epsg'])[:,:-1] + image_epsg, settings['output_epsg']) # only keep the shoreline points that are at least 30m from any nodata pixel idx_keep = np.ones(len(shoreline)).astype(bool) for k in range(len(shoreline)):