- 积分
- 9
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-11-10
- 最后登录
- 1970-1-1
|
发表于 2017-5-27 19:57:35
|
显示全部楼层
There are 3 different methods known to me. ( preferred operating system is Linux)
1. Using Grads :
Grib files generally comes with control files ( .ctl files) which is then used to read ,plot , extract or convert grib files to netcdf.
If you don’t have control file please read below link to create control files
http://tuxcoder.wordpress.com/2011/04/11/how-to-install-grib2ctl-pl-and-wgrib-in-linux/
http://tuxcoder.wordpress.com/2011/08/31/how-to-install-g2ctl-pl-and-wgrib2-in-linux/
Then, sdfwrite command in grads will convert data of interest to netcdf format.
2. Using NCAR Command Language (NCL):
This is most preferred and powerful tool than Grads. For more information visit the below links:
http://www.ncl.ucar.edu/
ncl_convert2nc is the command which will convert grib file to netcdf format.
http://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml
3. Using CDO
Useful link : https://code.zmaw.de/projects/cdo
Command : cdo -f nc copy file.grb file.nc
http://www.unidata.ucar.edu/software/netcdf/workshops/2012/third_party/CDO.html
Hope it will be useful to users. |
|