Giter Club home page Giter Club logo

py-ncepbufr's Introduction

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). If you have built and installed the bufr library from https://github.com/JCSDA/BUFRLIB, you can set the bufrlib_ROOT environment variable to point to where you installed it, and setup.py should use this one instead of building the library from the included source. However, you have to make sure that cmake (when building bufrlib) and numpy.distutils (when building the python extension) are using the same fortran compiler. Since numpy.distutils uses gfortran by default, one way to do this is to set FC=gfortran before building bufrlib. The other option is to specify the fortran compiler for python to use via python setup.py build config_fc --fcompiler=<compiler name> (python setup.py build --help-fcompiler lists the names of available compilers).
  • python setup.py install

Probably will not work on Windows!

to test, run test/test.py. Note that git-lfs must be installed and initialized to checkout test data in test/data. If no errors are raised, the tests pass.

a Jupyter notebook from the 2018 NOAA Modelling Fair is available at test/Python_tutorial_bufr.ipynb.

full API documentation in docs/ncepbufr/index.html.

py-ncepbufr's People

Contributors

jswhit avatar jswhit2 avatar cslocumwx avatar aerorahul avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.