parcels
parcels copied to clipboard
Main code for Parcels (Probably A Really Computationally Efficient Lagrangian Simulator)
https://github.com/OceanParcels/Parcels/blob/595b7a94cdf97182df53c88fa99cf05646f07346/parcels/fieldset.py#L162-L197 I don't like the current implementation of `.add_field()` calling `set_attr(self, name, field)`. Programmatically storing these fields messes with static typecheckers, and it would be clearer if this was handled...
Following from #1618, it would be good to update all the notebooks to use `parcels.rng` module instead of the `ParcelsRandom` alias. i.e. ```diff import parcels ... def my_kernel(...): - parcels.ParcelsRandom...
This PR fixes #1625
We heard that in some cases, scipy-parcels is (much) faster than JIT-parcels; especially when very many short calls to `pset.execute()` are performed. It may be that the caching of the...
The current default for the Parcels output chunks is `(len(pset), 1)`, meaning that every observation in the output file will create a new chunk (with significant overhead delay); see also...
The time management in the `pset.execute()` loop can be made a bit smarter. For example 1. If the `pset` is empty, execution can in principle be stopped. Since we don't...
There are a few explicit calls to `FieldSet.U` (and `FieldSet.V`?) in the Parcels code, which means that a valid `FieldSet` always has to have at least a U `Field`. This...
The [API reference for Parcels](https://docs.oceanparcels.org/en/latest/reference.html) is a great way to understand how to use individual functions. Some of the functions/classes don't have documentation as the Python docstring is empty, meaning...
Recent work by @daanreijnders found that the [Analytical algorithm for advection](https://docs.oceanparcels.org/en/latest/examples/tutorial_analyticaladvection.html) is far more accurate than RK4 advection, mainly because of discontinuities at grid cell boundaries. Hence, we want to...