屏蔽GrADS中的变量 [英] Masking a variable in GrADS

查看:94
本文介绍了屏蔽GrADS中的变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 GrADS 绘制NetCDF文件中的变量,我想仅绘制小于-20的值(例如,可以是任何其他数字).我找不到解决办法.我看到了同时使用maskoutconst的几个变量替换示例(例如define ones = const(const(maskout(p,p-10),1),0,-u),它是

I am trying to plot a variable that is in a NetCDF file using GrADS and I would like to plot only the values that are smaller than -20 (could be any other number as an example). I can't find a way to do it though. I saw several examples of variable substitution using both maskoutand const (for example define ones = const(const(maskout(p,p-10),1),0,-u), which is here) but I couldn't make that work for my purposes.

我希望变量在给定点不作图,以防其值小于-20,并且不要在该点将该值更改为另一个值.

I want the variable at a given point not plotted in case its value is below -20, and not this value change to another one in such point.

推荐答案

使用命令maskout(p,p+20)解决了该问题.写得不好的文档使我对此一无所获.在这里回答,以便社区可以受益. 谢谢.

Solved it using the command maskout(p,p+20). The badly written documentation is what delayed me on this one. Answered here so that the community may benefit. Thanks.

这篇关于屏蔽GrADS中的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆