Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geojunky committed Apr 3, 2024
1 parent a2d7550 commit f4d1296
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions seismic/ASDFdatabase/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ def __init__(self, domain_json_file:str):
# end func

def contains(self, lon:float, lat:float):
if(lon < 0): lon += 360 # temporary hack to cater for dateline crossings
p = Point((lon, lat))
flon = float(lon)
flat = float(lat)

if(flon < 0): flon += 360 # temporary hack to cater for dateline crossings
p = Point((flon, flat))

return self.bounding_polygon.contains(p)
# end func
Expand Down

0 comments on commit f4d1296

Please sign in to comment.