Coastal-Imaging-Research-Network / CoastSnap-Toolbox

This repository contains code, documentation and discussion forum for the CoastSnap community beach monitoring network
30 stars 9 forks source link

Unexpected beach width calculation results for west-Facing beaches in trend plot and animation tool #14

Open Ritagv opened 7 months ago

Ritagv commented 7 months ago

Hi Mitch, I've been testing the tool you've implemented for the trend plot and animation these days. On the beaches facing west, it performs the beach width calculations in reverse of what is expected, meaning when it should be a minimum value, it comes out as a maximum and vice versa. I thought it might be due to the orientation of the transects, and I've tried not flipping the transects, but it still does it the same, which has surprised me. However, on the beaches facing east, the results are logical. Any idea why this might be? If you need, I can send you images. Thanks!

mitchharley commented 7 months ago

Hi Rita, this could be a bug in the rotatePoints code when the orientation is from a certain quadrant (such as your beaches). I wont have time to look into it myself but would suggest looking into that

Ritagv commented 7 months ago

Hi Mitch, I'll check out what you suggest. Thank you very much :)