Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.17 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.17 KB

py-ncepbufr

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 using cd src; sh makebufrlib.sh. src/makebufrlib.sh is set up to use gfortran by default. You can edit src/makebufrlib.sh and run it manually if this step fails. If you change the fortran compiler, you may have to add the flags config_fc --fcompiler=<compiler name> when setup.py is run (see docs for [numpy.distutils] (http://docs.scipy.org/doc/numpy-dev/f2py/distutils.html)).
  • 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).