-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Nan values in cross distance #504
Comments
are the transects longer than 1km? there is something hard-coded to be within 1km from transect origin, see issue #499 . |
Actually no, they are shorter! I'll have a look at that issue and let you know. |
did you try the simple compute_intersections()? |
I found that the issue is related to the clipping operation of the output points I added to the script. _fig = plt.figure() for i in range(len(output['shorelines'])): the extension of the clipped dataset is smaller and equal to the area where the transect values are computed. Thanks Enrica |
Hello @kvos,
I'm encountering an issue with the cross-distance calculation. I have generated my transects as geojson and loaded them into Jupyter. Everything seems to be functioning correctly until the point where the cross distances are computed, because I'm getting NaN values for several of them.
I don't think the issue is related to the CRS, since some distances have reasonable values, and I've also verified how the starting and ending points are defined for each transect.
I attach here an image.
![Screenshot 2024-06-14 101750](https://private-user-images.githubusercontent.com/91685773/339695781-f6beff22-db0d-48f7-9841-4a5e4c4727d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMTEzNjEsIm5iZiI6MTcyNDAxMTA2MSwicGF0aCI6Ii85MTY4NTc3My8zMzk2OTU3ODEtZjZiZWZmMjItZGIwZC00OGY3LTk4NDEtNGE1ZTRjNDcyN2Q5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDE5NTc0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5YWFiZDA0N2I4ZjQ3ZTc4YmQ0ZTk4MTkxMWRkZDliOTBhODU5NmVmNWQxYmFmMDgzYTg5YTMzMWM2M2MxMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QSuUfyWrMTAWaHrMqYC8yVWYkVm2VQfyUpxJsOulKho)
What would you suggest?
Thank you in advance.
Enrica
The text was updated successfully, but these errors were encountered: