Skip to content

Explore and expose use of writing particles in a Kernel #2599

@erikvansebille

Description

@erikvansebille

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that has not been reviewed by a Parcels team member

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions