爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: river

[图形美化] 任意两点间斜剖面做法总结【利用GRADS自带函数】

  [复制链接]

新浪微博达人勋

发表于 2014-10-27 19:38:36 | 显示全部楼层
请教下楼主,coll2gr不能画time slice的意思是不是不支持几个时次合成的意思?应为我使用了u1=ave(uwnd,t=1,t=5)之后一直提示命令有误无法出图,别的我没有改动 我想因为是这个原因吧?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-10-27 19:40:58 | 显示全部楼层
duoduoduo 发表于 2014-10-27 19:38
请教下楼主,coll2gr不能画time slice的意思是不是不支持几个时次合成的意思?应为我使用了u1=ave(uwnd,t= ...

翻了翻前面的恢复,已经有提出同样问题的同学,楼主也做过解答了 在这里一并谢过!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-10-27 20:28:42 | 显示全部楼层
duoduoduo 发表于 2014-10-27 19:38
请教下楼主,coll2gr不能画time slice的意思是不是不支持几个时次合成的意思?应为我使用了u1=ave(uwnd,t= ...

不是那个意思。实际的意思是说不支持做任意直线上的时间——高度剖面图
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-10-29 16:48:00 | 显示全部楼层
谢谢分享
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2014-11-4 10:48:08 | 显示全部楼层
仔细看了一遍,给力啊!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-11-4 15:24:54 | 显示全部楼层
ydef 181 linear -90.000000 1
楼主,你的这个和ctl中维数的设置有关吗,我用下面的数据可以画出来
xdef 360 linear 0.000000 1.000000
tdef 1 linear 00Z08apr2012 1mo
*  z has 26 levels, for prs
zdef 26 levels
1000 975 950 925 900 850 800 750 700 650 600 550 500 450 400 350 300 250 200 150 100 70 50 30 20 10


但是另一个数据 x y z 维不是线性的, 是都是用的levels 列举出来的  而且 z 维上是用海拔高度列举的   
这个数据画不出来,插值投影出来 没有值
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-11-4 19:24:26 | 显示全部楼层
苏涛 发表于 2014-11-4 15:24
ydef 181 linear -90.000000 1
楼主,你的这个和ctl中维数的设置有关吗,我用下面的数据可以画出来
xdef  ...

列举出来也是没问题的吧,因为那个本来就是ctl的另一种写法啊。如果你的Z不是等高面或者等压面,那在最后插值的时候coll2gr里面不能用-u这个参数,应使用代表实际高度的那个数。
coll2gr()

This function creates a grid from a collection of station data. The syntax is:

coll2gr(cnum <,num>)

cnum     collection number
num      number of vertical levels in the output grid (default is 10)
If num is given as "-u", then the vertical levels will be a union of all the levels in the collection of station data.

Usage Notes

Before using coll2gr, you must create the collection of stations using the GrADS command collect.
coll2gr does not yet support time slices; currently, it will only work when the collection of stations is a collection of vertical profiles.
coll2gr produces an output grid that varies in X and Z; the dimension environment used when coll2gr is invoked must also be X and Z varying. The X axis of the output grid will contain the equally spaced station profiles and will span the range of the current X dimension environment. The Z axis of the output grid will span the range of the current Z dimension environment and will have either the specified number of levels or a union of the levels. Data points outside of the range of levels will be used for interpolating to within the range if appropriate.
The "-u" option will only work for data in pressure vertical coordinates. If your vertical coordinate is height, num should be the actual number of vertical levels in the collection of profiles.
See the section of the User's Guide on Arbitrary Cross Sections for more information.
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-11-5 08:39:32 | 显示全部楼层
river 发表于 2014-11-4 19:24
列举出来也是没问题的吧,因为那个本来就是ctl的另一种写法啊。如果你的Z不是等高面或者等压面,那在最后 ...

实在太感谢楼主了!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-11-7 22:43:53 | 显示全部楼层
谢谢啦~~~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-11-12 11:37:24 | 显示全部楼层
终于找到你!!感谢大神分享
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表