Skip to content

Commit

Permalink
Merge pull request #1256 from knutfrode/dev
Browse files Browse the repository at this point in the history
Changing unit from days to Days for biodegradation rate, otherwise Xa…
  • Loading branch information
knutfrode authored Mar 15, 2024
2 parents 2ce3beb + 16aba92 commit dd9d957
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opendrift/models/openoil/openoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ class Oil(Lagrangian3DArray):
'seed': False,
'default': 0
}),
('biodegradation_half_time_droplet',
{'dtype': np.float32, 'units': 'days', 'seed': False, 'default': 1,
('biodegradation_half_time_droplet', # Note: if unit is "days", Xarray tries to decode as datetime with error
{'dtype': np.float32, 'units': 'Days', 'seed': False, 'default': 1,
'description': 'Biodegradation half time in days for submerged oil droplets'}),
('biodegradation_half_time_slick',
{'dtype': np.float32, 'units': 'days', 'seed': False, 'default': 3,
{'dtype': np.float32, 'units': 'Days', 'seed': False, 'default': 3,
'description': 'Biodegradation half time in days for surface oil slick'}),
('fraction_evaporated', {
'dtype': np.float32,
Expand Down

0 comments on commit dd9d957

Please sign in to comment.