加速行星生成并避免R中出现循环
我正在开发一个小程序,该程序应该用于计算行星,特别是火星的表面太阳辐照度。最终,我希望能够输入日期/时间范围和坐标,并让程序以图形方式显示特定位置的太阳辐照度。我决定使用R,因为它擅长绘制图形和大型数据集。
到目前为止,这是我的代码:
longitudePoints <- 97 #How many points on the circle
latitudePoints <- 97 #How many latitudes there are
sunAngle <- 323 #angle between pl...