Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/annefou/odc
ODC library for SPREADS
https://github.com/annefou/odc
Last synced: about 11 hours ago
JSON representation
ODC library for SPREADS
- Host: GitHub
- URL: https://github.com/annefou/odc
- Owner: annefou
- License: apache-2.0
- Created: 2023-06-08T13:19:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-08T13:21:53.000Z (over 1 year ago)
- Last Synced: 2024-12-22T13:44:57.631Z (20 days ago)
- Language: C++
- Size: 500 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# odc
[![Build Status](https://img.shields.io/github/workflow/status/ecmwf/odc/Continuous%20Integration/develop)](https://github.com/ecmwf/odc/actions/workflows/ci.yml)
[![Documentation Status](https://readthedocs.org/projects/odc/badge/?version=latest)](https://odc.readthedocs.io/en/latest/?badge=latest)
[![Licence](https://img.shields.io/github/license/ecmwf/odc)](https://github.com/ecmwf/odc/blob/develop/LICENSE)C, C++ and Fortran libraries providing encoders and decoders and interrogation of meteorological data encoded in ODB-2 format as well as command line tools for investigation and manipulation of ODB-2 data.
[Documentation]
## Dependencies
### Required
* C or C++ compiler
* [CMake]
* [ecbuild]
* [eckit]### Optional
* Fortran compiler
* [Doxygen]## Installation
```sh
git clone https://github.com/ecmwf/odc
cd odc# Setup environment variables (edit as needed)
SRC_DIR=$(pwd)
BUILD_DIR=build
INSTALL_DIR=$HOME/local
export eckit_DIR=$INSTALL_DIR # set to eckit install prefix# Create the the build directory
mkdir $BUILD_DIR
cd $BUILD_DIR# Run ecbuild (CMake)
ecbuild --prefix=$INSTALL_DIR -- $SRC_DIR# Build and install
make -j10
make test # optional
make install# Check installation
$INSTALL_DIR/bin/odc --version
```## Usage
Include the `odc` headers like so:
```c
// odc_test.c
#include "odc/api/odc.h"int main() {
odc_initialise_api();
return 0;
}
```Make sure to reference the linked library when compiling:
```sh
gcc -lodccore odc_test.c
```## Build Documentation
The documentation is generated using Sphinx.
First, make sure that `Doxygen` module is available, and then install Python dependencies in your environment:
```sh
cd docs
pip install -r requirements.txt
```You can then build the documentation by using **make**:
```sh
cd docs
make html
```The built HTML documentation will be available under the `docs/_build/html/index.html` path.
## Licence
This software is licensed under the terms of the Apache Licence Version 2.0 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
In applying this licence, ECMWF does not waive the privileges and immunities granted to it by virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
[Documentation]: https://odc.readthedocs.io/en/latest/
[CMake]: https://cmake.org
[ecbuild]: https://github.com/ecmwf/ecbuild
[eckit]: https://github.com/ecmwf/eckit
[Doxygen]: https://www.doxygen.nl