问题描述
我正在尝试使用 GrADS 绘制NetCDF文件中的变量,我想仅绘制小于-20的值(例如,可以是任何其他数字).我找不到解决办法.我看到了同时使用maskout
和const
的几个变量替换示例(例如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 maskout
and 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中的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!