-
Trying to follow the tutorial of https://nbviewer.org/github/OceanParcels/parcels/blob/master/parcels/examples/tutorial_nemo_3D.ipynb Why do I get the following error when running the code above was working for the 2D tracking.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I rerun the code from .py file. it is really the line: |
Beta Was this translation helpful? Give feedback.
-
Figured it out myself. |
Beta Was this translation helpful? Give feedback.
Figured it out myself.
need to add
output_file = output_file
at the end of
pset.execute
that is the following code:
output_file = pset.ParticleFile(name=savePartFn, outputdt=timedelta(hours=1)) # the file name and the time step of the outputs
pset.execute(kernels, runtime=delta(days=10), dt=delta(hours=6), output_file=output_file)