Skip to content

time_periodic #1475

Nov 29, 2023 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

Hi @ignasivalles, thanks for asking this question. I must say that we don't often (never?) use time_periodic in my group, so I'm not entirely sure whether it still works as originally intended.

As for the expected length, I must admit that this is very confusing, but I think the point is that the last time can be duplicated, see the self.grid._add_last_periodic_data_timestep variable on line 203 in the code below:
https://github.com/OceanParcels/parcels/blob/7e47aa3c26fc25072921c6d9050cd0d58edc0c47/parcels/field.py#L197-L205

FYI, the code that then converts the periodic time is below:
https://github.com/OceanParcels/parcels/blob/7e47aa3c26fc25072921c6d9050cd0d58edc0c47/parcels/field.py#L1…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ignasivalles
Comment options

You must be logged in to vote
6 replies
@ignasivalles
Comment options

@erikvansebille
Comment options

@ignasivalles
Comment options

@ignasivalles
Comment options

@ignasivalles
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants