Replies: 1 comment 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello to all,
I'm trying to run the model with some forcings that I have on a Flash Drive. All run good, until I'm initializing with o.run().
I was using by first an other o.run() configuration, but with even the simpler it just show me a bug.
`ValueError Traceback (most recent call last)
in
----> 1 o.run()
2 #o.run(outfile='PlastDrift3.nc', time_step= 3600, time_step_output=3600*6)
~/opendrift/opendrift/models/basemodel.py in run(self, time_step, steps, time_step_output, duration, end_time, outfile, export_variables, export_buffer_length, stop_on_error)
2228
2229 if np.sign(duration.total_seconds()) * np.sign(time_step.total_seconds()) < 0:
-> 2230 raise ValueError("Time step must be negative if duration is negative.")
2231
2232 self.expected_steps_output = duration.total_seconds() / \
ValueError: Time step must be negative if duration is negative.
`
Here is how Im seeding :
o.seed_cone(lon=[-74, -75], lat=[11.5, 12], number=10000, radius=[0, 2000],
time=[reader_curr_2010_2015.start_time, reader_curr_2010_2015.start_time+timedelta(days=30)])
Can someone give me a hint!!!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions