write output at given particle age #1282
Replies: 2 comments
-
Hmm, if you only want to write at one specific age then you could use the Alternatively, you could do a separate run for each starttime (or combine start times that are multiples of the age at which to write), so that you don't mix them. But that of course is more heavy on I/O for the hydrodynamic fields (because each run will have to read in all the hydrodynamic data). |
Beta Was this translation helpful? Give feedback.
-
More fundamentally, there's currently no option to write at a specific age, although that should not be too difficult to implement if someone wants to have a go at it. The key line to change is where now all particles are gathered whose |
Beta Was this translation helpful? Give feedback.
-
Currently, ocean parcels writes out all particle positions at a given time. I would like to write out particles positions at a given age since release (the particles are released at a higher frequency than the output frequency). Is there an easy way to do this?
I am currently thinking of a hack-ish way to do this -- keeping position at last age output time as separate variables (last_x,last_y,last_z) which I update at the right age. I then save those variables.
Or I could write out at a high-frequency, and then post-process the files. But that can lead to very large initial output files.
But is there a more efficient way?
Thanks, Jamie
Beta Was this translation helpful? Give feedback.
All reactions