我有一张 4096*4096 的太阳图像。我想使用 MATLAB 跟踪它的纬度和经度。我试过下面的代码。虽然它在轴上工作正常(纬度 = 0/90 经度 = 0/90),但它在边缘处失败(例如纬度 = 30 经度 = 90)
x=round((b*s*cos((l*pi)/180))+xC)
y=round((-l*s)+yC)
where x=horizontal displacement
y=vertical displacement
l=latitude
b=longitude
(xC,yC)=center coordinates of the Sun
s=scaling factor.
在此先感谢
我正在绘制给定纬度的所有经度点。图 1 是纬度 = 0,而图 2 和图 3 分别是纬度 = 45 和 -45。随着纬度的增加,线条变得更加倾斜(纬度 = 70 参见图 4)。
请参考以下图片链接:https ://drive.google.com/drive/folders/0B2X4xzsGcarCbGM5aVM1UXBRX2M?usp=sharing
我还尝试绘制恒定经度的纬度,并发现了类似的趋势(随着经度增加的偏斜)。