【问题标题】:How to plot specific value in GrADS如何在 GrADS 中绘制特定值
【发布时间】: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


    【解决方案1】:

    如果你想绘制'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)'

    【讨论】:

      猜你喜欢
      • 2023-02-08
      • 2021-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-02
      • 2017-01-23
      • 1970-01-01
      • 2016-09-05
      相关资源
      最近更新 更多