You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename particle position attributes from "lon" and "lat" to "x" and "y" (#2719)
* Refactor lon lat to x y
Update particle definition and all related code
- particle.py particle variables
- ParticleSet args
- all internal mentions of .lon and .lat
- test suite code
* Update repr
* Update interpolators
* Update error messages
* Update local varnames in kernels
* Update migration guide
* Review feedback
* Restore v3 files
* Update docs/user_guide/v4-migration.md
Co-authored-by: Erik van Sebille <e.vansebille@uu.nl>
---------
Co-authored-by: Erik van Sebille <e.vansebille@uu.nl>
Copy file name to clipboardExpand all lines: docs/user_guide/v4-migration.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Version 4 of Parcels is unreleased at the moment. The information in this migrat
18
18
- Users need to explicitly use `convert_z_to_sigma_croco` in sampling kernels (such as the `AdvectionRK4_3D_CROCO` or `SampleOMegaCroco` kernels) when working with CROCO data, as the automatic conversion from depth to sigma grids under the hood has been removed.
19
19
- We added a new AdvectionRK2 Kernel. The AdvectionRK4 kernel is still available, but RK2 is now the recommended default advection scheme as it is faster while the accuracy is comparable for most applications. See also the Choosing an integration method tutorial.
20
20
- Functions shouldn't be converted to Kernels before adding to a pset.execute() call. Instead, simply pass the function(s) as a list to pset.execute().
21
+
- Kernel variables `lat` and `lon` have been renamed to `y` and `x`, and `dlat` and `dlon` have been renamed to `dy` and `dx`. These changes are also reflected on the ParticleSet as well as the ParticleFile output.
0 commit comments