爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: river

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

  [复制链接]

新浪微博达人勋

发表于 2014-12-11 20:06:07 | 显示全部楼层
我现在就是要画这个图,但是有三个格点中心,举一反三试试看行不行。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-12 13:27:55 | 显示全部楼层
maskout

maskout(expr,mask)

Wherever the mask values are less than zero, the values in expr are set to the missing data value.

Works with gridded or station data. Where mask values are positive, the expr values are not modified. Thus the result of maskout is data with a possibly increased number of missing data values. The maskout function, in spite of its apparant simplicity, is extremely useful.

Usage Notes

Examples

See the Examples for the const function for a description of using maskout to calculate the percentage of the globe covered by precipitation.
The maskout function can be used to cause part of the data to be ignored while doing another calculation. For example, if we have a land-sea mask, where sea values are negative, and we want to take some areal average of a quantity only over land:
d aave(maskout(p,mask.2),lon=0,lon=360,lat=0,lat=90)
People frequently have trouble using a mask grid, because it is often put into a seperate file, and given some arbitrary date/time and level. Thus, it is often necessary to locally override the dimension environment while using the mask grid:
d aave(maskout(p,mask.2(t=1)),lon=0,lon=360,lat=0,lat=90)
would probably be how Example 2 would have to be expressed in order to work, with the local override of t=1 specified on the mask data. See the documentation on how GrADS evaluates expressions within the dimension environment for more information.
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-12-12 14:47:16 | 显示全部楼层
海蓝蓝 发表于 2014-12-12 13:27
maskout

maskout(expr,mask)

是不是回复错了?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-12 18:59:45 | 显示全部楼层
感谢分享,学习中
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-16 20:58:56 | 显示全部楼层
-omega.1*100,请恕我愚笨,.1是什么意思?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-16 21:22:03 | 显示全部楼层
坐标不好整
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-12-16 22:22:23 | 显示全部楼层
寻路人 发表于 2014-12-16 20:58
-omega.1*100,请恕我愚笨,.1是什么意思?

那不是你笨,这个.1是文件号啊,意思是打开的第一文件里的变量。还有可能有.2  .3  .4 之类的,为了区分不同文件里的变量用的
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-17 10:29:12 | 显示全部楼层
真的不错!会成为经典的!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-23 12:40:15 | 显示全部楼层
不錯,厉害~~~
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2014-12-25 16:12:08 | 显示全部楼层
学习啦,谢谢楼主分享~~
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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