-
|
Running a model similar to the first two cases in: File ~\Miniconda3\envs\py3_parcels\lib\site-packages\parcels\collection\collectionsoa.py:856, in ParticleCollectionSOA.toDictionary(self, pfile, time, deleted_only) IndexError: boolean index did not match indexed array along dimension 0; dimension is 34 but corresponding boolean dimension is 12 when days = 8 or 20, all is good, when it is 50, it starts to report error.... Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Thanks for reporting this error, @keli559. I had not seen this bug before, and cannot reproduce it without having your code or data. However, note that we are about to release a new version of Parcels that has a complete overhaul of the way output is written (#1199); so if you wait a few weeks more this error might disappear? |
Beta Was this translation helpful? Give feedback.
-
|
Feel free to take a look at the following code, @erikvansebille. It is very similar to the first two cases in the second tutorial on the OceanParcels sight (I am still learning .... ) It has been working alright, I used the DeleteParticle function that you suggested before to take off the points that are advected outside of the domain. def DeleteParticle(particle, fieldset, time): ............` |
Beta Was this translation helpful? Give feedback.
Feel free to take a look at the following code, @erikvansebille. It is very similar to the first two cases in the second tutorial on the OceanParcels sight (I am still learning .... ) It has been working alright, I used the DeleteParticle function that you suggested before to take off the points that are advected outside of the domain.
This time, I set number of particles to be 50, released sequentially along the time axis of the eulerian data (ocean circulation output), The total time axis length of the eurlerian data is about 3 months. However, I only allow the pset.execute to run 50 days as runtime. That is where I got the error from. Thanks
`
import xarray
%matplotlib inline
from parc…