Skip to content

Commit

Permalink
bugfix when calling SDS_tools.convert_epsg() in SDS_shoreline.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kvos committed Dec 22, 2022
1 parent 2bf91c9 commit 0dae5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coastsat/SDS_shoreline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 0dae5a8

Please sign in to comment.