Skip to content

Commit ff78b3a

Browse files
Adding default ParticleSet.ei Variable
For indexing (to be implemented)
1 parent 5a3d0e1 commit ff78b3a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

parcels/particleset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def __init__(
142142
"depth": (["trajectory"], depth.astype(lonlatdepth_dtype)),
143143
"time": (["trajectory"], time),
144144
"dt": (["trajectory"], np.timedelta64(1, "ns") * np.ones(len(trajectory_ids))),
145+
"ei": (["trajectory", "ngrid"], np.zeros((len(trajectory_ids), len(fieldset.gridset)), dtype=np.int32)),
145146
"state": (["trajectory"], np.zeros((len(trajectory_ids)), dtype=np.int32)),
146147
"lon_nextloop": (["trajectory"], lon.astype(lonlatdepth_dtype)),
147148
"lat_nextloop": (["trajectory"], lat.astype(lonlatdepth_dtype)),

0 commit comments

Comments
 (0)