Skip to content

Commit d5548e4

Browse files
author
Aurelien PONTE
committed
fix issue with lat=0
1 parent 82fd9b7 commit d5548e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utide/harmonics.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def FUV(t, tref, lind, lat, ngflgs):
122122

123123
astro, ader = ut_astron(tt)
124124

125-
if abs(lat) < 5:
125+
if lat == 0:
126+
lat = 5
127+
elif abs(lat) < 5:
126128
lat = np.sign(lat) * 5
127129

128130
slat = np.sin(np.deg2rad(lat))

0 commit comments

Comments
 (0)