我正在尝试插入以下卫星地面轨道:
问题是 (lon,lat)->(0,0) 处的不连续性,这会导致该区域的拟合曲线不佳:
我不确定参数插值是否是最好的方法,现在我刚刚应用了线性插值:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy import interpolate
df = pd.read_table('groundtracks', sep='\t')
x = df['lon']
y = df['lat']
f = interpolate.interp1d(x, y, kind='linear')
xnew = np.linspace(x.min(), x.max(), num=x.count()*2)
ynew = f(xnew)