Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Sep 5, 2024
1 parent 102a5c5 commit 0e7a6f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pyaro/timeseries/Filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,19 +943,19 @@ def _gridded_altitude_from_lat_lon(self, lat: float, lon: float) -> float:

return float(altitude)

def _is_close(self, altmod: float, altobs: float) -> bool:
def _is_close(self, alt_gridded: float, alt_station: float) -> bool:
"""
Function to check if two altitudes are within a relative tolerance of each
other.
:param altmod : Gridded altitude (in meters).
:param altobs : Observation / station altitude (in meters).
:param alt_gridded : Gridded altitude (in meters).
:param alt_station : Observation / station altitude (in meters).
:returns :
True if the values are close with station altitude as the reference
value.
True if the absolute difference between alt_gridded and alt_station is
<= self._rdiff
"""
return abs(altmod-altobs) <= self._rdiff
return abs(alt_gridded-alt_station) <= self._rdiff

def init_kwargs(self):
return {
Expand Down

0 comments on commit 0e7a6f2

Please sign in to comment.