Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: When only_keep_points_on_transects is True dropped points are not removed from transect_time_series_merged.csv #280

Open
3 tasks done
2320sharon opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@2320sharon
Copy link
Collaborator

2320sharon commented Nov 13, 2024

When the user wants to keep only the shoreline points that land on the transect the user sets the 'Drop intersection points not on transects' setting to True. This will drop the shoreline points that land outside the transect, except it does not remove these dropped points transect_time_series_merged.csv files, but does for the transect_time_series.csv files

I have also noticed that the code to add the 'shore_x' and 'shore_y' points to the timeseries file is using the transect point at index =1, which works correctly if the transect contains only 2 points, but will fail to calculate the correct position if the transect contained more than 2 points. This is because the logic assumes that the transect's end point is at index 1 and when this is not the case the shore x and shore y points are calculated relative to the incorrect points.

  • In add_shore_points_to_timeseries set last = transect.geometry.coords[-1] instead of last = transect.geometry.coords[1]

  • In common.py after filter_dropped_points_out_of_timeseries make sure to drop the points in dropped_points_df from merged_timeseries_df ( this dataframe is later used to create the transect_time_series_merged.csv files

  • In scripts/apply_tidal_correction.py after filter_dropped_points_out_of_timeseries make sure to drop the points in dropped_points_df from merged_timeseries_df ( this dataframe is later used to create the transect_time_series_merged.csv files
    drop_intersection_example_white

@2320sharon 2320sharon added the bug Something isn't working label Nov 13, 2024
@2320sharon 2320sharon self-assigned this Nov 13, 2024
2320sharon added a commit that referenced this issue Nov 13, 2024
…nt of transect & add code to filter out dropped points from merged time series
@2320sharon 2320sharon moved this to In Progress in CoastSeg Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

1 participant