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:

parcels/parcels/field.py

Lines 197 to 205 in 7e47aa3

if self.time_periodic is not False:
if isinstance(self.time_periodic, datetime.timedelta):
self.time_periodic = self.time_periodic.total_seconds()
if not np.isclose(self.grid.time[-1] - self.grid.time[0

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