This is an old revision of the document!
Installation
Dependencies
Fimex requires at least the following libraries to be installed for compilation:
- c99/c++ compiler
- libxml2 >= 2.5.0
- boost library >= 1.32
- proj-4 >= 4.4.9
- udunits 1.12.x or >= 2.1.x
To configure the different file formats it requires:
Build
The installation follows the usual autoconf rules, see 'INSTALL' for extensive information. Since Fimex makes some floating-point calculations in large loops, it is advisable to switch on SIMD/SSE operations in your compiler. On a Xeon machine with a x386 machine and gcc, I use the following flags (those are default for x86-64) (see microbenchmark of sse for more information)
Since fimex 0.21
CFLAGS='-O2 -mfpmath=sse -msse2' CXXFLAGS='-O2 -mfpmath=sse -msse2' ./configure --with-netcdf=/usr --with-udunits=/usr make make check make install
In case of compilation against the netcdf4 library with hdf5 support, additional libraries needed by a static netcdf4 need to be added manually in LDFLAGS. Those can be retrieved from the nc-config program, e.g.
$ /usr/local/netcdf/netcdf-4.1.1/bin/nc-config/nc-config --libs -L/usr/local/netcdf/netcdf-4.1.1/lib -lnetcdf -L/usr/local/hdf/hdf5-1.8.5-patch1/lib -lhdf5_hl -lhdf5 -lz -lm -lgpfs $ export LDFLAGS='-L/usr/local/hdf/hdf5-1.8.5-patch1/lib -lhdf5_hl -lhdf5 -lz -lm -lgpfs'
The required LDFLAGS can be retrieved from the
Test
- Download the file with testdata: flth00.dat.gz
- Put this file into the test-catalogue
- gunzip the file
- run 'make check' (make check will work even without the testdata and skip a lot of tests)