Skip to content

Comments

Update create_trajectories_kml.R#16

Open
Dario-W wants to merge 1 commit intolivingingroups:mainfrom
Dario-W:patch-1
Open

Update create_trajectories_kml.R#16
Dario-W wants to merge 1 commit intolivingingroups:mainfrom
Dario-W:patch-1

Conversation

@Dario-W
Copy link
Contributor

@Dario-W Dario-W commented May 20, 2025

This line caused errors for me in the later "for (tt in tidxs)" loops. The timestamps get converted to numeric in the loop, causing it to throw an "out of bonds" error. This is a simple proposed change that fixed it for me. This actually gets the indeces instead of the timestamps.

This line caused errors for me in the later "for (tt in tidxs)" loops. The timestamps get converted to numeric in the loop, causing it to throw an "out of bonds" error. This is a simple proposed change that fixed it for me. This actually gets the indeces instead of the timestamps.
Copy link
Contributor

@arianasp arianasp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for taking so long to look at this. I think this may be a problem with what you are putting into the function and not actually a problem with the function itself (unless I'm wrong). t0 and tf should be numeric values already (i.e. time indexes, not timestamps). So I have not approved this change for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants