- 积分
- 4
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-4-15
- 最后登录
- 1970-1-1
|
GrADS
系统平台: |
centos |
问题截图: |
|
问题概况: |
使用spline函数进行插值,为了获得一个高度分辨率更高的气体廓线,使用命令y2=spline(x1,y1,x2,/double),y1随x1单调递增,且y1的值大于0,为什么得到的y2出现部分递减的结果,同时还出现了部分负值,这是什么原因,应该怎么处理? |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
3 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
; makre sure p1, and p2 are increasing order
if p1(0) gt p1(1) then begin
p1 =-p1
p2 =-p2
endif
; find levels within the input pressure/atltide grid
sel = where(p2 ge p1(0) and p2 le p1(nl1), nsel)
if nsel ge 2 then begin
cout = spline(p1, co3in, p2(sel))
o3out(sel(0:nsel-2)) = cout(1:nsel-1) - cout(0:nsel)
|
|