-
Notifications
You must be signed in to change notification settings - Fork 120
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
OpenDrift announcements #32
Comments
The OpenDrift repository is now moved to https://github.com/OpenDrift |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Given the new configuration mechanism announced above, a generic method has now been implemented in 784df41 for interaction with coastline. Previously, all elements were deactivated when hitting land (except for WindBlow model).
To deactivate elements hitting land (default for most models): To ignore coastline (e.g. for atmospheric transport): To move elements hitting land back to their previous position in water (default for pelagicegg): More sophisticated interaction is planned for implementation later, e.g. keep exactly at coastline, slide along coastline etc. |
Hi Knut-Frode, Do these changes require adjustments in the module file's "configspec" section? It seems like this section is no longer read? For example, I have this section in my module file: configspec = '''
Now I get the following error: KeyError Traceback (most recent call last) /Users/kristina/Documents/opendrift/opendrift/models/basemodel.pyc in set_config(self, key, value) /Users/kristina/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/configobj.pyc in getitem(self, key) KeyError: 'biology' |
I am sorry, but the documentation is not yet updated properly on this. In your case, you can instead of the configspec-string add this line to your Alternatively, a configspec-string with several items (like before) may be created in your constructor as a local variable, and added with a single command: |
Thanks for the quick reply? With the first option, the "self._add_config(..." should be added within I get the following error doing this: |
Oh yes, and there also has to be a comment/helpstring, e.g. to be shown within a graphical or WEB interface. This could probably have been made optional, but for now it is compulsory, e.g.: |
There are now two major updates of OpenDrift, as developed by André Brodtkorb (Sintef) within a project funded by Uninett Sigma2.
Se here for more details. |
Some new improvements are available in the latest version (1.0.3) of OpenDrift:
|
Version 1.0.6 of OpenDrift includes several improvements:
|
Important information to OpenDrift model developers: As you might have seen, OpenDrift has undergone some fundamental changes from version 1.3.3 to 1.4.2.
The configuration mechanism is now also used to set fallback values, which is safer than manually editing the dict
Correspondingly one can now also replace
One final note: as OpenDrift from time to time get new dependencies, it is necessary to update your conda environment after updating your code with
Among new dependencies, are Xarray/Dask, which is used for some new functionality to load huge output files lazily, in order to facilitate post-processing of netCDF files too large to fit in memory. |
This comment has been minimized.
This comment has been minimized.
Closing, new releases announced here: https://opendrift.github.io/history_link.html. |
To stay informed about new releases and important changes of OpenDrift, please click "Subscribe" in the menu on the right. A GitHub account is needed.
The text was updated successfully, but these errors were encountered: