-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leeway model fails with unknown environment
attribute
#1469
Comments
If you use I suspect it might be that your GOMOFS forcing files covers only a single timestep (from the filename), and thus cannot be used for a simulation over a time period.
|
Looks like you're right! ''' If I might ask a follow-up question. The output of this model is on a THREDDS server here: |
Under the OpenDAP link of a dataset you will find a Data URL field, as e.g. in this example from HYCOM ocean model: The Data URL in this case is |
I'm attempting to try the Leeway model and it is failing with an unknown
environment
attribute error. Here's my script:And here's the last few lines of output:
16:13:36 INFO opendrift.models.basemodel:931: Using existing reader for land_binary_mask 16:13:36 INFO opendrift.models.basemodel:944: Moving 100 out of 100 points from land to water Traceback (most recent call last): File "/Users/vschmidt/scratch/opendrift/./gomofs_testing.py", line 26, in <module> L.run(end_time = gomofs.end_time, time_step=600,outfile='gomofs_test_output.nc') File "/Users/vschmidt/gitsrc/opendrift/opendrift/models/basemodel/__init__.py", line 111, in inner r = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/vschmidt/gitsrc/opendrift/opendrift/models/basemodel/__init__.py", line 2151, in run self.state_to_buffer() # Append final status to buffer ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/vschmidt/gitsrc/opendrift/opendrift/models/basemodel/__init__.py", line 2292, in state_to_buffer for i, var in enumerate(self.environment.dtype.names): ^^^^^^^^^^^^^^^^ AttributeError: 'Leeway' object has no attribute 'environment'. Did you mean: 'plot_environment'?
The text was updated successfully, but these errors were encountered: