fix
This commit is contained in:
@@ -437,8 +437,13 @@ def course_spline(coordinates):
|
||||
t = np.linspace(0,1,len(latitudes))
|
||||
tnew = np.linspace(0,1,100)
|
||||
|
||||
latnew = CubicSpline(t,latitudes,bc_type='clamped')(tnew)
|
||||
lonnew = CubicSpline(t,longitudes,bc_type='clamped')(tnew)
|
||||
try:
|
||||
latnew = CubicSpline(t,latitudes,bc_type='clamped')(tnew)
|
||||
lonnew = CubicSpline(t,longitudes,bc_type='clamped')(tnew)
|
||||
except ValueError:
|
||||
latnew = latitudes
|
||||
lonnew = longitudes
|
||||
|
||||
# latnew = CubicSpline(t,latitudes,bc_type='natural')(tnew)
|
||||
# lonnew = CubicSpline(t,longitudes,bc_type='natural')(tnew)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user