How to convert GRIB to TEXT or Binary on UNIX. I suggest the following methods to convert GRIB-format data to TEXT or Fortran-Binary data: - a method by wgrib utility and - a method by GrADS. The details of these are found below. [[[ A method by wgrib ]]] 1) Obtain wgrib from http://www.cpc.ncep.noaa.gov/products/wesley/wgrib.html 2) The simplest way to get the text data, type, for instance, wgrib -d all -text temp.1945.grb -o temp.1945.txt File temp.1945.txt contains temperature on a global 1 deg. x 1 deg. grid at depths from 0 to 700 m (16 levels) for Jan. 1945 through Dec. 1945, sequentially. The values of analysis error follow the temperature data in the same way as that for temperature. Missing grids will be filled with 9.999e+20 (probably) by wgrib. The first value in text data is the temperature at ( 0.5E, 89.5S) at sea surface in Jan. 1945, and similarly 360th at (359.5E, 89.5S), 64801th at (0.5E, 88.5N), and so on. Note that ignore the following messages (or something similar to those) from wgrib: WTMP=Water temp. [K] MSLSA=Mean sea level pressure (Std Atm) [Pa] The units of variables are described in the .ctl files correctly, although the first message says the true unit. [[[ A method by GrADS ]]] 1) Obtain GrADS (http://grads.iges.org/grads/) 2) Obtain data from http://cpd1.kishou.go.jp/~ishii/projD/vXXX. Also files, temp.ctl and temp.idx, should be required in the following steps. 3) Run script "temp.gs" to convert GRIB data with GrADS to 4-byte-real-binary data (temp.dat) as grads -blc "run temp.gs" The script can be obtained from http://cpd1.kishou.go.jp/~ishii/projD/doc/temp.gs. Optionally, you can edit "temp.gs" to change data period, area, and levels. 4) If you convert Binary data (temp.dat) to ASCII data (temp.txt), use a FORTRAN program "temp.f". The program is available at http://cpd1.kishou.go.jp/~ishii/projD/doc/temp.f. You would modify "temp.f" if you have edited "temp.gs". Note that a missing value is 99999.