0

我在 GrADS 中的绘图变量上找到了这个链接,是的,该手册写得不好。我只想绘制等于零的值。

假设我有从 -10 到 10 的异常,我只想提取和绘制绝对零的轮廓,我该如何在 GrADS 中做到这一点?

reinit
open somefile.ctl
set gxout 
d var #this plots the variable from -10 to 10 
4

1 回答 1

0

如果你想绘制“0”等高线,只需使用“set clevs 0”,所以在你的代码中,它应该是:

reinit
open somefile.ctl

set gxout contour
set clevs 0

d var #this plots the variable from -10 to 10 

如果要“提取”轮廓线,最好的方法是将其保存为线 shapefile。像这样:

set gxout shp
set shp -ln -fmt 8 4 linem
set shpattr AUTHOR string test
set shpattr TYPE string grid contours
set shpattr DESC string anomaly
d var

有关更多详细信息,请参阅此链接链接 然后绘制 shapefile,只需使用“draw shp(shapefile 名称)”

于 2018-04-25T16:14:54.347 回答