-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1356 from AchrefAO/i1355_openberg
#1355_Corrected version_icebergs module
- Loading branch information
Showing
2 changed files
with
170 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Icebergs (OpenBerg module) | ||
========================== | ||
Icebergs (openberg) | ||
==================== | ||
""" | ||
|
||
from opendrift.models.openberg import OpenBerg | ||
from datetime import datetime,timedelta | ||
|
||
o = OpenBerg(add_stokes_drift = True, | ||
wave_rad = True, | ||
grounding = False, | ||
vertical_profile = False, | ||
melting = False, | ||
choose_melting = {"wave": True, "lateral": True, "basal": True}) | ||
o = OpenBerg() | ||
|
||
# The user can overwrite the default setup using set_config method | ||
o.set_config('drift:vertical_profile', False) # use surface currents for this test | ||
|
||
|
||
|
||
o.add_readers_from_list([ | ||
'https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml', | ||
'https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd']) | ||
|
||
|
||
o.seed_elements(lon= -57,lat= 69,time=datetime.now(), number=1000, radius=1000) | ||
o.run(duration=timedelta(days=2)) | ||
o.seed_elements(lon= -56,lat= 72,time=datetime.now(), | ||
number=100, radius=500, | ||
sail=10,draft=50,length=90,width=40) | ||
|
||
o.run(duration=timedelta(days=3)) | ||
o.plot(fast=True) | ||
o.plot_property('draft') | ||
|
Oops, something went wrong.