Skip to content

Commit

Permalink
Merge pull request #52 from Daafip/dev
Browse files Browse the repository at this point in the history
tweak to refactor
  • Loading branch information
Daafip committed Apr 10, 2024
2 parents 90b4a82 + be53c74 commit b675a59
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ewatercycle_HBV/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def _make_cfg_file(self, **kwargs) -> Path:
self.forcing.filenames['tas'].replace('tas', 'tas_deg'))
if not temporary_tas_file.is_file():
ds = xr.open_dataset(self.forcing.directory / self.forcing.filenames['tas'])
ds['tas'] = ds['tas']
if ds['tas'].mean().values > 200: # adjust for kelvin units
ds['tas'] -= 273.15
ds['tas'].attrs.update({'units':'degC'})
Expand Down

0 comments on commit b675a59

Please sign in to comment.