You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: opendrift/models/openberg.py
+20-9Lines changed: 20 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -51,21 +51,29 @@ class IcebergObj(LagrangianArray):
51
51
('sail', {'dtype': np.float32,
52
52
'units': 'm',
53
53
'default': 10,
54
+
'min': 1,
55
+
'max': 100,
54
56
'description': 'Sail of iceberg (part above waterline)',
55
57
'level': CONFIG_LEVEL_ESSENTIAL}),
56
58
('draft', {'dtype': np.float32,
57
59
'units': 'm',
58
60
'default': 90,
61
+
'min': 1,
62
+
'max': 1000,
59
63
'description': 'Draft of iceberg (part below waterline)',
60
64
'level': CONFIG_LEVEL_ESSENTIAL}),
61
65
('length', {'dtype': np.float32,
62
66
'units': 'm',
63
67
'default': 100,
68
+
'min': 1,
69
+
'max': 10000,
64
70
'description': 'Length of iceberg',
65
71
'level': CONFIG_LEVEL_ESSENTIAL}),
66
72
('width', {'dtype': np.float32,
67
73
'units': 'm',
68
74
'default': 30,
75
+
'min': 1,
76
+
'max': 10000,
69
77
'description': 'Width of iceberg)',
70
78
'level': CONFIG_LEVEL_ESSENTIAL}),
71
79
('weight_coef', {'dtype': np.float32, #This parameter is relative to the shape of iceberg (e.g. 1 for tabular; 0.3 for pinnacle: It affects the mass only)
@@ -287,15 +295,15 @@ class OpenBerg(OpenDriftSimulation):
0 commit comments