mcps


Comparison between npo & mcps output, 77 Kbytes mcps is a little program that will allow you to automatically plot a section from a CCP4 map file using both a grayscale (actually, dithered monochrome) representation and contour lines. This can be quite useful when the map contains significant fluctuations at high (or low) density, making it difficult to decide whether a feature is a peak or valley (see this graph for a comparison between the classical contour-line plot and the output from mcps in the case of a "difficult" map).
You can also view an electronic reprint (html) of an article that appeared in the CCP4 Newsletter (March 2002).

Click here to download the compressed archive : mcps.tar.gz (812 KBytes). The distribution includes documentation (manual page, html) and pre-compiled executables suitable for Irix, Linux, OSF and solaris.
Once you downloaded the file, do :

gunzip mcps.tar.gz
tar xvf mcps.tar
cd mcps
cat 0README

For the security-aware users : the compressed archive's detached signature is here (mcps.tar.gz.asc) and this is my public PGP key.
If you are in a hurry, here is the MD5 (mcps.tar.gz) = a6a6f24bafbfc047812d67884d829314





Spherical harmonics


Screenshot, 29 Kbytes This little program (in OpenGL) plots (and spins) the graph of the following equation :

rho=cos(A*theta)^B+sin(C*theta)^D+cos(E*phi)^F+sin(G*phi)^H
and it allows you to change the values of the parameters (A,B,C,D,E,F,G,H) while observing the effects of your changes. Click here to download the compressed executable : sph.gz (51 KBytes, MD5 (sph.gz) = 8ed903ce8ec7a7e2b3c8d289165f850b). Good for Irix 6.2 and upwards (or even 5.3 ? I have never tried it.). Please note that your browser may unpack the executable on the fly. If that's the case you don't need the gunzip step below.
Once you downloaded the file, do :
gunzip sph.gz
chmod 755 sph
./sph

If a window pops-up showing a flower spinning around everything is OK : have a look at the short documentation printed on your terminal and enjoy. If you have the OpenGL and GLUT libraries, you can also get the source code sph.c and try to compile it on your machine (with something like cc sph.c -lglut -lGLU -lGL -lXmu -lXext -lX11 -lm if you have a Unix box).

If you have a Linux box, you can give it a try with this executable (which uses quite a few shared libraries, so don't be surprised if it doesn't work on your machine).






HP48 software


Manual page for the program Fourier If you are a proud owner of a Hewlett Packard HP48 calculator, you may be interested in downloading the two short (system RPL) programs included in the file hp48.tar.gz (compressed tar archive). The first program allows you to perform two-dimensional forward and inverse geometric Fourier transforms (not FFT) and two-dimensional map plotting (see the manual page for more details). The second program will allow you (given a set of unit cell dimensions) to calculate the reciprocal unit cell dimensions and volume, and the Bragg spacing corresponding to a given reflection.