wgrib2: -bin
Introduction
The -bin option writes the grid values to a specified
file in binary format (C: float, Fortran: real). The default order is
WE:SN (see -order option) with f77 header/trailer (see -no_header).
The undefined value is 9.999e20. The file format remains unchanged from
wgrib except the order of grid points can now be specified.
On most machines, the binary format is either big or little-endian single
precision IEEE.
Usage
-bin file_name
Example
$ wgrib2 test.grb2 -s | grep ":RH:2 m" | wgrib2 -i test.grb2 -bin data.bin
285:36796469:d=2005090200:RH:2 m above ground:60 hour fcst
wgrib ==> wgrib2
-header -bin -o out.bin -header -order raw -bin out.bin
-bin -o out.bin -order raw -bin out.bin
The above line extracts the 2 meter RH from file test.grb2 and writes it in data.bin
See also: -text,
-netcdf,
-spread,
-ieee
|