Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ymiftah committed Mar 15, 2024
1 parent ea2b381 commit e4e8589
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions atlite/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ def convert_dewpoint_temperature(ds):
Return dewpoint temperature.
"""
# Temperature is in Kelvin

# There are nans where there is sea; by setting them
# to zero we guarantee they do not contribute when multiplied
# by matrix in atlite/aggregate.py
return (ds["dewpoint temperature"] - 273.15).fillna(0.0)
return ds["dewpoint temperature"] - 273.15


def dewpoint_temperature(cutout, **params):
Expand Down

0 comments on commit e4e8589

Please sign in to comment.