Save multiple files from a loop #1201
-
Hi everyone: I am trying to release multiple "eggs" with a day of difference (start and end), the duration of the run for all the releases should be 5 days. I am having some trouble storing the data, the loop only store the first release, and in the second run I getting this error: AttributeError: 'PelagicEggDrift' object has no attribute 'environment' Has any of you solved something similar? Thank you in advanced!! model used: PelagicEggDrift start_time = uv.start_time for i in range(0,2): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Just a suggestion You can do a loop only for the seeding and set o.set_config('drift:max_age_seconds',612000) # 5243600 to limit the drifting time of each particle. That way all particles can be stored in a single file. |
Beta Was this translation helpful? Give feedback.
Hi,
Just a suggestion
You can do a loop only for the seeding and set
o.set_config('drift:max_age_seconds',612000) # 5243600
to limit the drifting time of each particle. That way all particles can be stored in a single file.