-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Transect issues #499
Comments
Hi @jobthoma97 The reason you only see a single transect plotted is because only that transect intersected your shoreline. In the CSV the date represents the time the shoreline was captured and each column is the transect ID. All the transects except NA4 are blank which means they didn't intersect the shoreline captured in 2018. Without knowing your shoreline data I can't tell why that's the case, but I hope this helps! It might be worth double checking that the shoreline and the transects are in the same CRS. I've made that mistake a lot. |
Hi @2320sharon , Thank you for replying. I cross checked the CRS for transect and the CoastSat_Shoreline for 2018, they are both on the same CRS(32614). I overlayed the transects and the output shoreline from CoastSat in QGIS, they intersect with the transects. Below I have attached the Metadata, PDF FIle of the Jupyter Notebook and the output of shoreline overlayed on the transects. ##-----------------Jupyter Script PDF File -------------------------------## ##-----------------Transect Metadata -------------------------------## ##-----------------Shoreline Metadata -------------------------------## ##-----------------Output File of Shoreline from CoastSat and Transect shapefile -------------------------------## |
hi @jobthoma97 , so you only have 1 shoreline mapped but you should get a value for each transect, not just NA4. Can you try to run the simple compute intersections? see what happens. I'm guessing some of the QC parameters is discarding the intersections for the other transects... |
Hello @kvos , Thank you for the reply. Yes I have only one shoreline and as you said it should give the value for each transect. The length for NA1 from on-shore to the shoreline intersection point was 1.207 KM, for NA2 it was 1.270 KM, NA3 it was 1.083 KM, NA5 it was 1.302 KM and NA4 it was 0.966 KM. Then later I shorten the length of the transects and it was able to plot all subplots for 5 transect intersection points. Then for confirmation I checked the python script for SDS_transects.py and on line 220 " idx_dist = np.logical_and(d_line <= settings['along_dist'], d_origin <= 1000)" this was mentioned as well on line 321 "idx_dist = np.logical_and(d_line <= along_dist, d_origin <= 1000)". I think this was the reason it was only plotting for NA4. Am I on the right track or something else was the reason for this to happen. |
that's exactly it, I had forgotten about that hard-coded 1km distance. Maybe we should increase it to 5km? we need to restrict it somehow as the equation we're using is point to line distance, which is not limited by distance and in case of someone putting transects that are not in the same coordinates as the shorelines it will give some false results. What do you think @2320sharon @jobthoma97 ? |
Absolutely. And if there is a error message highlighting the transect length exceeded by 1 or 5km from on-shore to shoreline intersection points or the coordinates does not match, It will be easier for the users to identify the error or in the "example_Jupyter" a line can be added mentioning about the transect length range. It's up to you, or there might be some better solutions. Thank you very much @2320sharon and @kvos for the help. |
I'm happy I could help @jobthoma97 . I'm glad you got it all sorted out. @kvos we've also run into issues with the hardcoded max distance of 1km in |
@kvos May I know what is the sole purpose of the hard-coded function to 1km . Just out of curiosity. |
Hi @kvos ,
I have loaded the transects using coordinates.
I was able to load it successfully. In the transect plot it's showing all the 5 transects but after computing the transects, on the multiple subplot graph figure its only showing for transect number 4.
In the Excel sheet also its showing the distance for 1 transect.
How to resolve this ?
Below I have attached the images.
![Coastsat_TransectPlot](https://private-user-images.githubusercontent.com/85024689/338462694-b386f798-5fa3-4ab6-b043-ca7df208c53f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDc0NzIsIm5iZiI6MTcyMzI0NzE3MiwicGF0aCI6Ii84NTAyNDY4OS8zMzg0NjI2OTQtYjM4NmY3OTgtNWZhMy00YWI2LWIwNDMtY2E3ZGYyMDhjNTNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDIzNDYxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1NDYxNDc5OTQ4NGRiZGFjMWIwNDdhYzQyYWFiNjc0M2ZlNDQxMDgxNWQ4ZDEyZDMwOGY4NGYyMGFiYjM0ZjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9xJ1nTcmVptLZKBWKRiUXATS_ZWGd25-cnW7RKrb0JU)
Transect Plot Map.
Transect Subplot Graph.
![Coastsat_TransectPlot2](https://private-user-images.githubusercontent.com/85024689/338462945-d1819327-fe3d-49d5-aa24-1e508f4730ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDc0NzIsIm5iZiI6MTcyMzI0NzE3MiwicGF0aCI6Ii84NTAyNDY4OS8zMzg0NjI5NDUtZDE4MTkzMjctZmUzZC00OWQ1LWFhMjQtMWU1MDhmNDczMGVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDIzNDYxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU0Nzg0YTIwZmEwYzIyMGY4ZDA4ZTkzYzFiNWZiZDE2ZTY1YzI0NjM2OTdiN2FlNjU5ODMzOTAwZDdjNWQ1ZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LdyaFiPlvqDNX_kTuJgMztXjZdO3b2KhAubpDiDq364)
Transect distance CSV.
![Coastsat_TransectPlot3](https://private-user-images.githubusercontent.com/85024689/338463237-7b9d34ee-ccbb-4996-a67b-73fe3992c4f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDc0NzIsIm5iZiI6MTcyMzI0NzE3MiwicGF0aCI6Ii84NTAyNDY4OS8zMzg0NjMyMzctN2I5ZDM0ZWUtY2NiYi00OTk2LWE2N2ItNzNmZTM5OTJjNGY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDIzNDYxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlMjViZGJmNGNhMmUwYzU4ODA2M2QwOGNiMTU3MzUyMmMyZDJhN2VhODNhN2Q4NzFkY2YwODFmNzVkMDQ1ZjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tcDFWeN6VihLHIE5m29JgD6zjYg1PtjXZUmEUfeBcPo)
The text was updated successfully, but these errors were encountered: