Archive for June, 2008

cdat installation

Attempting to install cdat (alpha source) into my existing macpython installation.

By all appearances all i need to do is unset PYTHONPATH and PYTHONHOME, and run python

Seemed to work – vcs and one other package failed to install, so I’ll have to revisit that. The test script doesn’t seem to have installed where the message tells me it goes (” To Test CDAT, please run:
/Library/Frameworks/Python.framework/Versions/2.5/bin/python -v3 -P
and then
/Library/Frameworks/Python.framework/Versions/2.5/bin/python -v3 -C –skip
You can add the option “–full” at the end of these lines for FULL testing
For more info on functionalities run:
/Library/Frameworks/Python.framework/Versions/2.5/bin/python –help

“), so I’ll need to look into that too. The vcs log file indicates that it failed to find cairo, which might be a problem with my cairo setup. SP also failed – haven’t checked the log.

I can import cdms2, but all my production scripts use cdms – I’ll need to ask about backwards compatibility.


Leave a Comment

SPH rendering in pyticles

Just committed a new version of pyticles with SPH rendering implemented.

Leave a Comment

SVN cheat sheet

Create new repo:
svnadmin create /path/to/repository

Add directory to repo
svn import project file:///repository_name/project -m “First Import”

Check out directory
svn checkout file:///repository_name/project/trunk project

Leave a Comment

Numpy, Scipy, Matplotlib rebuild recipie (Leopard)

The steps I used to refresh the trinity of python packages goes something like:
Nuke all old versions. *ALL* old versions! Fortune favours the bold – of course it will work!

svn co numpy
cd numpy
python build
sudo python install

svn co scipy

or just svn update if I’m feeling lazy. Then in the scipy source directory,

python build_src build_clib --fcompiler=gnu95 build_ext --fcompiler=gnu95 build
sudo python install

Not sure if the deployment target variable works for 10.5, but it seems logical.

Then get the matplotlib egg (it was a pita to build the first time so screw that). You may need to rename it (to the name below), otherwise it might try to download and build everything, which is ok if you have the spare time and patience to troubleshoot the build process.

sudo easy_install matplotlib-0.98.0-py2.5.egg

Matplotlib is not much good in the atmospheric sciences without Basemap. /opt/local is for macports, so the Geos library can just live in /opt. Basemap documentation. Setting GEOS_DIR didn’t seem to help Basemap find the library (I seem to remember having this problem with another python package, CDAT probably), so I had to add it manually to


These notes are for me, for quality advice always use the documentation provided by the tool distributors and the mailing lists. To do: build optimised atlas, lapack etc and configure scipy to use these.

Leave a Comment