【发布时间】:2018-04-26 00:14:54
【问题描述】:
我在 GrADS 中的绘图变量上发现了这个 link,是的,该手册写得不好。我只想绘制等于零的值。
假设我有从 -10 到 10 的异常,我只想提取和绘制绝对零的轮廓,我该如何在 GrADS 中做到这一点?
reinit
open somefile.ctl
set gxout
d var #this plots the variable from -10 to 10
【问题讨论】:
标签: grads
我在 GrADS 中的绘图变量上发现了这个 link,是的,该手册写得不好。我只想绘制等于零的值。
假设我有从 -10 到 10 的异常,我只想提取和绘制绝对零的轮廓,我该如何在 GrADS 中做到这一点?
reinit
open somefile.ctl
set gxout
d var #this plots the variable from -10 to 10
【问题讨论】:
标签: grads
如果你想绘制'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
查看此链接了解更多详情Link 然后绘制 shapefile,只需使用 'draw shp (name of shapefile)'
【讨论】: