CoastSat icon indicating copy to clipboard operation
CoastSat copied to clipboard

Possibility to use interface between user-specified classes as shoreline

Open sebbelese opened this issue 1 year ago • 4 comments

The shorelines are currently only determined from the MNDW, and that the pixel classification is used to determine the threshold. The MNDW may not be relevant in all cases. Further, we may want to consider the vegetation/beach interface as shoreline to avoid the noise related to tides. This interface cannot be accurately captured using the MNDW.

I added a setting option to not use the MNDWI to extract shorelines but instead use the interface between user-specified classes as shoreline:

Interface sand / whitewater+water image

Interface sand/other image

Let me know if you are interested in a merge request

sebbelese avatar Jul 27 '23 08:07 sebbelese

yes you can add in pull request, pls make sure it is in a separate function that can be called instead of extract_shorelines() and then document it. It's best if you merge your changes with the development branch. thanks a lot for your contribution

kvos avatar Sep 15 '23 13:09 kvos

@sebbelese It's really cool. I'm interested in this. Can you tell me how this is achieved and can you share files?

xiyang712 avatar Mar 19 '24 05:03 xiyang712

@sebbelese It's really cool. I'm interested in this. Can you tell me how this is achieved and can you share files? Hello,

I did not initiate the pull request initially because I did not implement it following kvos' requirements, and I was not working on this project anymore at that time.

Edit : Unfortunately, I do not have access to the code anymore, it was from my previous job.

The technique was quite simple: filling with zeros all the classes that should be on one side, filling with ones all the classes on the other side, the define the boundary between zeros and ones.

sebbelese avatar Mar 26 '24 16:03 sebbelese

@sebbelese and @xiyang712 , want to point out that a new toolbox has been released to specifically map vegetation lines, check it out https://github.com/fmemuir/COASTGUARD/

kvos avatar May 23 '24 12:05 kvos