- 积分
- 1297
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-10-2
- 最后登录
- 1970-1-1
|
发表于 2019-8-21 10:21:54
|
显示全部楼层
楼主你好,我仍然坚持我的观点,你的atan2((endlat-startlat),(endlon-startlon)) 写反了,应该是atan2((endlon-startlon),(endlat-startlat)),理由有两个
1:http://www.ncl.ucar.edu/Document/Functions/Built-in/atan2.shtml,提供了atan2函数的用法
function atan2 (
y : numeric,
x : numeric
)
return_val [dimsizes(y)] : float or double
Example 1
Compute the meteorological wind direction given the zonal (u) and meridional (v) wind components. The meteorological direction tells from which direction the wind is blowing.
r2d = 45.0/atan(1.0) ; conversion factor (radians to degrees)
u = 10.0
v = 10.0
dir = atan2(u, v) * r2d + 180 ; ===> dir = 225.0
函数当中的y并不是真正意义上的纵坐标,通过example也可以清楚的看到
2:就你画出的图而言(首页),你的剖面基线与x轴的角度也和程序里的不对,明显是互余的关系 |
|