Download and Installation

First you will need a Python interpreter. The development and most of the testing is done with Python 2.5 (get it here). 

There is a number of modules that the current OMPClib depends on:

numpy - numerical array
scipy - equivalent of MATLAB(R)'s toolboxes
matplotlib - plotting and data visualization

The rest of dependencies come with the package.

Although my script is almost ready, I am still thinking about using alternative ways of installing OMPC, other than distutils and setuptools. OMPC will be changing rapidly now and I want to avoid issues with files left over from previous versions. I seriously recommend installing Mercurial

To get the latest version of the package you could always get it in a zip file , tar.gz file or tar.bz2 file.
Downloading this package is equivalent to getting the newest version from the Mercurial repository.

hg clone

At the moment I am suggesting to work from within the directory that contains the ompc and ompclib directories. This means that after uncompressing the downloaded archive you should change into ( in my case). For example:

> wget
> tar xvfj tip.bz2
> cd ompc-2f62b3a16cd5
> python
Python 2.5.1 (r251:54863, Jul 10 2008, 17:24:48)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ompc
>>> print sum(reshape(mslice[1:30], 5,3,2),1)

ans =

(:, :, 1)

    15.0,   40.0,   65.0

(:, :, 2)

    90.0,  115.0,  140.0