What version of Parcels are you running?
v4
Is your feature request related to a problem?
Now that we have a more robust ParticleFile using Parquet, through #2583, it would be good to explore and expose if/how users can write Particle positions directly through a Kernel.
Describe the solution you'd like
The big advantage of that workflow would be that particles can only be written based on a condition (e.g. when being deleted, or when reaching a certain area), and do not require regular time-stepped output. This would be hugely beneficial for e.g. connectivity studies
If it is indeed possible to call pfile.write(particles) from a Kernel (which I suspect, but to be confirmed), then it would be good to also showcase this in a tutorial
Note that #2583 (comment) could also be related to this feature; as indices could then be given through pfile.write(particles[some_condition])
Describe alternatives you've considered
No response
Additional context
No response
What version of Parcels are you running?
v4
Is your feature request related to a problem?
Now that we have a more robust
ParticleFileusing Parquet, through #2583, it would be good to explore and expose if/how users can write Particle positions directly through a Kernel.Describe the solution you'd like
The big advantage of that workflow would be that particles can only be written based on a condition (e.g. when being deleted, or when reaching a certain area), and do not require regular time-stepped output. This would be hugely beneficial for e.g. connectivity studies
If it is indeed possible to call
pfile.write(particles)from a Kernel (which I suspect, but to be confirmed), then it would be good to also showcase this in a tutorialNote that #2583 (comment) could also be related to this feature; as indices could then be given through
pfile.write(particles[some_condition])Describe alternatives you've considered
No response
Additional context
No response