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