OceanParcels / Parcels

Main code for Parcels (Probably A Really Computationally Efficient Lagrangian Simulator)
https://www.oceanparcels.org
MIT License
295 stars 136 forks source link

Release different amount of particles #885

Closed SaAlrabeei closed 4 years ago

SaAlrabeei commented 4 years ago

I know we can release N number of particles every m days. I am wondering if PARCELS support releasing N_i numbers of particles every M_j date. I.e, day1 release 50k, day2 release 20k particles,etc.

erikvansebille commented 4 years ago

The easiest way to accomplish this is to create the whole particle set at once but set different start times for each particle. See e.g. https://nbviewer.jupyter.org/github/OceanParcels/parcels/blob/master/parcels/examples/tutorial_delaystart.ipynb#Assigning-each-particle-its-own-time