How is ioda python API built

Hi, I am trying to encode IODA formatted observations following the existing IODA examples. In the tutorial, the IODA python API are calling ioda python module that is already in place under the singularity environment. For users of other platforms, how should the IODA API be built and where can I find the building instructions?

Sorry about the slow response - Iā€™ve been on leave and am back in the office now.

To build the ioda python API, you need to build one of the bundles.

The easiest thing to do is build fv3-bundle since you have access to that bundle in both the public (jcsda) and private (jcsda-internal) github organizations.

You can follow directions for building your bundle here: Building and compiling JEDI ā€” JEDI Documentation 1 documentation

When you get to the ecbuild step add the following ecbuild command line option: -DBUILD_PYTHON_BINDINGS=ON

This enables the creation of the ioda python API. Note that you must have access to the pybind11 module for this to work properly. Discover, Orion, S4, Cheyenne and Hera have been set up with pybind11. If you are not working on one of these platforms, you may need to discuss with your IT group about getting access to pybind11.

Hope this helps you get started. I can help further if needed.

1 Like

Thanks very much for your kind response! I am going to try building FV3-bundle with the -DBUILD_PYTHON_BINDINGS=ON.

1 Like