Linux系统下安装wgrib2

下载wgrib2:   http://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz


[root@SZD-L0089638 grib2]# cd wgrib2/
[root@SZD-L0089638 wgrib2]# ls
AAIG.c                           gctpc_ll2xy.c               mysql_speed_readme.txt

AAIGlong.c                       gctpc.txt                   ncep_grids.c


[root@SZD-L0089638 wgrib2]# cd ..
[root@SZD-L0089638 grib2]# ls
aux_progs         jasper-1.900.1-14ubuntu3.2.debian.tgz  README.EUMETSAT           README.open64
Developement.doc  lib                                    README.g2clib             README.openmp
formats.doc       libaec-1.0.2.tar.gz                    README.gcc                README.pgi
ftn_api           libpng-1.2.57.tar.gz                   README.gctpc              somfor.c
g2clib-1.4.0      makefile                               README.geolocation_plans  sominv.c
gctpc20a.tgz      makefile.gctpc                         README.icc                tar_all
include           makefile_hwrf                          README.ipolates           tmp
INSTALLING        netcdf-3.6.3.tar.gz                    README.Mac                wgrib2
intro_grib2.doc   proj-4.8.0.tar.gz                      README.mysql              zlib-1.2.11.tar.gz
intro_grids.doc   proj.h                                 README.ncep
iplib_hwrf        README                                 README.netcdf3
iplib.v3.0.0      README.clang                           README.netcdf4
[root@SZD-L0089638 grib2]# ll
total 26432
drwxr-x--- 2 root root     4096 May 21 10:48 aux_progs
-rw-r----- 1 root root     1185 Jan  9  2004 Developement.doc

-rw-r----- 1 root root     3203 Aug 16  2013 formats.doc



[root@SZD-L0089638 grib2]# make
makefile:398: *** ERROR, fortran compiler (enironment vararible FC) is not recognized.  Stop.
[root@SZD-L0089638 grib2]# yum list|grep libgrib2c
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
[root@SZD-L0089638 grib2]# 
[root@SZD-L0089638 grib2]# 
[root@SZD-L0089638 grib2]# yum list|grep libgrib2c
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
[root@SZD-L0089638 grib2]# 
[root@SZD-L0089638 grib2]# 
[root@SZD-L0089638 grib2]# 
[root@SZD-L0089638 grib2]# yum list|grep wgrib2 
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
wgrib2.x86_64                             2.0.1-3.el7                  epel     
[root@SZD-L0089638 grib2]# yum install wgrib2.x86_64
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                                                                                  | 3.6 kB  00:00:00     
epel                                                                                                                                  | 4.7 kB  00:00:00     
extras                                                                                                                                | 3.4 kB  00:00:00     
updates                                                                                                                               | 3.4 kB  00:00:00     

(1/7): epel/x86_64/group_gz                                                




Total                                                                                                                        4.5 MB/s | 3.0 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libquadmath-4.8.5-28.el7_5.1.x86_64                                                                                                       1/6 
  Installing : libgfortran-4.8.5-28.el7_5.1.x86_64                                                                                                       2/6 
  Installing : libaec-1.0.2-1.el7.x86_64                                                                                                                 3/6 
  Installing : hdf5-1.8.12-10.el7.x86_64                                                                                                                 4/6 
  Installing : netcdf-4.3.3.1-5.el7.x86_64                                                                                                               5/6 
  Installing : wgrib2-2.0.1-3.el7.x86_64                                                                                                                 6/6 
Error unpacking rpm package wgrib2-2.0.1-3.el7.x86_64
error: unpacking of archive failed on file /usr/bin/wgrib2: cpio: rename
  Verifying  : hdf5-1.8.12-10.el7.x86_64                                                                                                                 1/6 
  Verifying  : libaec-1.0.2-1.el7.x86_64                                                                                                                 2/6 
  Verifying  : libgfortran-4.8.5-28.el7_5.1.x86_64                                                                                                       3/6 
  Verifying  : netcdf-4.3.3.1-5.el7.x86_64                                                                                                               4/6 
  Verifying  : libquadmath-4.8.5-28.el7_5.1.x86_64                                                                                                       5/6 
  Verifying  : wgrib2-2.0.1-3.el7.x86_64                                                                                                                 6/6 


Dependency Installed:
  hdf5.x86_64 0:1.8.12-10.el7        libaec.x86_64 0:1.0.2-1.el7      libgfortran.x86_64 0:4.8.5-28.el7_5.1      libquadmath.x86_64 0:4.8.5-28.el7_5.1     
  netcdf.x86_64 0:4.3.3.1-5.el7     


Failed:
  wgrib2.x86_64 0:2.0.1-3.el7                                                                                                                                


Complete!
[root@SZD-L0089638 grib2]# 
[root@SZD-L0089638 grib2]# 
[root@SZD-L0089638 grib2]# 
[root@SZD-L0089638 grib2]# cd /
[root@SZD-L0089638 /]# w
w                 watchgnupg        weak-modules      whereis           who               wish8.6           wpa_passphrase    
wait              wc                wget              which             whoami            withsctp          wpa_supplicant    
wall              wcslint           whatis            while             wipefs            wordcloud_cli.py  write             
watch             wdctl             wheel             whiptail          wish              wpa_cli           wrjpgcom          
[root@SZD-L0089638 /]# w
w                 watchgnupg        weak-modules      whereis           who               wish8.6           wpa_passphrase    
wait              wc                wget              which             whoami            withsctp          wpa_supplicant    
wall              wcslint           whatis            while             wipefs            wordcloud_cli.py  write             
watch             wdctl             wheel             whiptail          wish              wpa_cli           wrjpgcom          
[root@SZD-L0089638 /]# cd /usr/
[root@SZD-L0089638 usr]# cd bin/
[root@SZD-L0089638 bin]# mv wg
wget             wgrib2/          wgrib2;5b027088  
[root@SZD-L0089638 bin]# mv wg
wget             wgrib2/          wgrib2;5b027088  
[root@SZD-L0089638 bin]# mv wgrib2 wgrib2_bak
[root@SZD-L0089638 bin]# 


root@SZD-L0089638 bin]# 
[root@SZD-L0089638 bin]# yum install wgrib2.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package wgrib2.x86_64 0:2.0.1-3.el7 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


=============================================================================================================================================================
 Package                             Arch                                Version                                     Repository                         Size
=============================================================================================================================================================
Installing:
 wgrib2                              x86_64                              2.0.1-3.el7                                 epel                              219 k


Transaction Summary
=============================================================================================================================================================
Install  1 Package


Total download size: 219 k
Installed size: 548 k
Is this ok [y/d/N]: y
Downloading packages:
wgrib2-2.0.1-3.el7.x86_64.rpm                                                                                                         | 219 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : wgrib2-2.0.1-3.el7.x86_64                                                                                                                 1/1 
  Verifying  : wgrib2-2.0.1-3.el7.x86_64                                                                                                                 1/1 


Installed:
  wgrib2.x86_64 0:2.0.1-3.el7                                                                                                                                


Complete!
[root@SZD-L0089638 bin]# wg
wget    wgrib2  
[root@SZD-L0089638 bin]# wg
wget    wgrib2  
[root@SZD-L0089638 bin]# wg
wget    wgrib2  
[root@SZD-L0089638 bin]# wgrib2 
wgrib2 v0.2.0.1 7/2014 Wesley Ebisuzaki, Reinoud Bokhorst, Jaakko Hyvätti, Dusan Jovic, Kristian Nilssen, Karl Pfeiffer, Pablo Romero, Manfred Schwarb, Arlindo da Silva, Niklas Sondell, Sergey Varlamov
   
 -0xSec           inv  X      Hex dump of section X (0..8)
 -MM              inv         reference time MM
 -N_ens           inv         number of ensemble members
 -RT              inv         type of reference Time
 -S               inv         simple inventory with minutes and seconds (subject to change)
 -Sec0            inv         contents of section0

 -Sec3            inv         contents of section 3 (Grid Definition Section)




猜你喜欢

转载自blog.csdn.net/Gzigithub/article/details/80395817