Now we are going to see how to install wgrib2 and g2ctl in our linux machine, for the Grib version 2 data.
# 现在我们来看看如何在我们的Linux机器上安装WGRIb2和G2CTL,用于GRIB版本2的数据。
step 1:
# 步骤1:
First of we need to install GRADS
# 首先我们需要安装GRADS
http://grads.iges.org/grads/downloads.html(查不到网页了)
(或者https://sourceforge.net/projects/opengrads/files/grads2/2.1.0.oga.1/Linux/)(推荐)
# HTTP//Gr.IG.Org/Grass/DubLosi.HTML
From the above link we can get the source.
# 从上面的链接我们可以得到来源。
In ubuntu we need to install some dependencies,
# 在Ubuntu中,我们需要安装一些依赖项,
$ sudo apt-get install libgrib2c-dev libgrib2c0d (to install wgrib2 correctly)
# $SUDO APT获得安装LBGRBI2C DEV LIGBRI2C0D(正确安装WGRIb2)
$ sudo apt-get install grads (for gribmap)
# $SUDO APT获得安装梯度(GRIPMAP)
Note : grads version must be equal or higher than the 2.0.a8 (to work correctly for grib2).
# 注意:GrADS版本必须等于或高于2.0.A8(为GRBI2正确工作)。
If you are using ubuntu 10.04, then grads may be lower than the above version.
# 如果您使用Ubuntu 10.04,那么GrADS可能低于上述版本。
So download the source of grads version 2.0.a8 or higher.
# 因此,下载GrADS版本2.0.A8或更高的源代码。
$ sudo apt-get install libxmu-dev libxmu-headers x11-common x11-xserver-utils
# $SUDO APT安装LIXMU DEV LIXXMU报头X11公共X11 XServer UTLS
Extract that downloaded grads source and change directory into that extracted folder.
# 提取下载的梯度源并将目录更改为提取的文件夹。
$ ./configure
# $ /配置 详细见 https://blog.youkuaiyun.com/nemo2011/article/details/7384501
$