python interface to NCEP BUFR library (BUFRLIB).
to install (numpy and fortran compiler (preferably gfortran) required):
- python setup.py build
- setup.py will try to build
src/libbufr.a
if it does not already exist usingcd src; sh makebufrlib.sh
.src/makebufrlib.sh
is set up to use gfortran by default. You can editsrc/makebufrlib.sh
and run it manually if this step fails. If you change the fortran compiler, you may have to add the flagsconfig_fc --fcompiler=<compiler name>
when setup.py is run (see docs for [numpy.distutils] (http://docs.scipy.org/doc/numpy-dev/f2py/distutils.html)).
- setup.py will try to build
- python setup.py install
Probably will not work on Windows!
see http://jswhit.github.io/py-ncepbufr/ for docs.
see test/test.py for example usage.
utils/prepbufr2nc is a utility to convert NCEP prepbufr files to netcdf format.
utils/nc2prepbufr does the reverse (netcdf back to prepbufr).