Mesh Data Abstraction Library
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmake [feature] fix #21: Add 3Di/NetCDF format (#24) Sep 7, 2018
cmake_templates [feature] fix #21: Add 3Di/NetCDF format (#24) Sep 7, 2018
mdal frmts/ascii_dat: Replace tabs by spaces Oct 23, 2018
scripts Travis Windows build (#38) Oct 17, 2018
tests frmts/ascii_dat: Replace tabs by spaces Oct 23, 2018
tools [feature] add NetCDF format, fixes #11 Oct 4, 2018
.gitignore fix syntax May 10, 2018
.travis.yml Travis Windows build (#38) Oct 17, 2018
AUTHORS initial folder structure Apr 10, 2018
CITATION initial folder structure Apr 10, 2018
CMakeLists.txt Travis Windows build (#38) Oct 17, 2018
LICENSE initial folder structure Apr 10, 2018
README.md Travis Windows build (#38) Oct 17, 2018
Toolchain-mingw32.cmake

README.md

Build Status

MDAL

Mesh Data Abstraction Library

see Unstructured Mesh Layers

Supported Formats

You can use MDAL to load the following file formats:

  • NetCDF: Generic format for scientific data. Examples can be found here
  • GRIB: Format commonly used in meteorology. Examples can be found here
  • XMDF: As an example, hydraulic outputs from TUFLOW modelling package
  • DAT: Outputs of various hydrodynamic modelling packages (e.g. BASEMENT, HYDRO_AS-2D, TUFLOW)
  • 3Di: 3Di modelling package formate based on CF Conventions

Build

Windows

For 64-bit version:

  • Install Microsoft Visual Studio 2017
  • Install OSGeo4W (64bit) to C:\OSGeo4W64
  • see win build script

Linux

install dependencies for drivers

sudo apt-get install libgdal-dev libhdf5-dev libnetcdf-dev

and use cmake to generate build system

mkdir build;cd build
cmake -DCMAKE_BUILD_TYPE=Rel -DENABLE_TESTS=ON ..
make

MacOS

First you need to install homebrew and osgeo4mac dependencies, see osx install script

To build, create build system with cmake and make sure you use dependencies from homebrew and not system ones

mkdir build;cd build
export CMAKE_PREFIX_PATH=/usr/local/opt/gdal2
cmake -DCMAKE_BUILD_TYPE=Rel -DENABLE_TESTS=ON ..
make

Tests

run ctest command in build directory ctest -VV

Contribution

format code:

cd scripts
./mdal_astyle.sh `find .. -name \*.h* -print -o -name \*.c* -print`

or use git pre-commit hook

cd MDAL
ln -s ./scripts/mdal_astyle.sh .git/hooks/pre-commit