Installation
DASI Library (C/C++)
The supported way to install DASI library is by building from source.
Dependencies
Build and Install
git clone https://github.com/ecmwf-projects/dasi
cd dasi
# Setup environment variables (edit as needed)
SRC_DIR=$(pwd)
BUILD_DIR=build
INSTALL_DIR=$HOME/local
export eckit_DIR=$ECKIT_DIR
export metkit_DIR=$METKIT_DIR
export fdb5_DIR=$FDB_DIR
# 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/dasi --version
DASI Python
The Python interface to DASI is called pydasi. It uses the cffi Python package for interfacing with the DASI C API (see DASI Library (C/C++)).
Dependencies
Python Environment Setup
It is advised to create a virtual Python environment:
$ cd project_dir
$ python -m venv .venv
$ source .venv/bin/activate
Installation
pydasi can be installed using pip command:
$ cd project_dir
$ source .venv/bin/activate
(.venv) $ pip install cffi
(.venv) $ pip install pydasi