Monday, August 24, 2009

Compiling the netcdf operators

A small adventure in compiling the netcdf operators (with netcdf4 support) uses these things

First, the *shared* netcdf4 libraries must be used. And despite the advice on the web, all of the include and library directories must be specified... see

./configure --help

for the variables that must be set. Then, I needed to modify

nco/src/nco/nco_netcdf.h

so that

#define HAVE_NETCDF4_H

was set at the beginning of the file. This variable should be set when using netcdf4, but it was not. Then configure and make like this:

./configure --enable-netcdf4 --disable-shared
make -j 8

I linked to a version of hdf and netcdf4 that did not use shared libraries, thus the --disable-shared option. I also had success linking to shared versions of these libraries.

The build fails on the math operators, like usually, but it makes ncks. I noticed that it was searching for an old version of libnco, so delete that first. You may also need to do a ldconfig to find the right libraries after the install.

Monday, January 12, 2009

OmniFocus vs. Things

The short answer is that [Things](http://culturedcode.com/things/) wins... Now for the long answer, after the break..