Animating Particle Trajectory File in Diffusion Tutorial #1408
-
I would like to animate the particle trajectories outlined in the Milton scheme of order 1 (M1) advection-diffusion simulation that is "walked through" (haha) in the Diffusion Tutorial on the Ocean Parcels website. While I am able to a static trajectory plot, shown below, attempting to animate this results in a TypeError, also displayed. Link to the Diffusion Tutorial: https://docs.oceanparcels.org/en/latest/examples/tutorial_diffusion.html Static particle trajectory plot: Code attempting to animate this: Note that, in the code above, M1_high.zarr is equivalent to the M1_out.zarr file in the diffusion tutorial. Any ideas on what to do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for reporting, @ttoshiro. The built-in plotting functionality in Parcels was always very rudimentary, and not very robust. We've therefore removed it recently in #1397. I suggest that you write your own code to make an animation, for example based on the code at https://docs.oceanparcels.org/en/latest/examples/tutorial_output.html#Animations |
Beta Was this translation helpful? Give feedback.
Thanks for reporting, @ttoshiro. The built-in plotting functionality in Parcels was always very rudimentary, and not very robust. We've therefore removed it recently in #1397.
I suggest that you write your own code to make an animation, for example based on the code at https://docs.oceanparcels.org/en/latest/examples/tutorial_output.html#Animations