Category Archives: Research

The Greens library by Peter Koval and Stephan Fritzsche

In of my former research projects I wrote a Single Scatter Cluster code (called YaSC) where I made use of “The Greens library”. I found it quite useful to test my own routines against functions of this library as well as the Gnu Scientific Library. While the latter is still around and alive is the Greens library not to be found in the net anymore. Since I found it quite useful and I’m sure it’s useful to others as well I’m publishing the code again.

Continue reading The Greens library by Peter Koval and Stephan Fritzsche

Install Gnuplot 4.4.0 on Mac OS X

In a former post I showed how Gnuplot 4.2.6 could be easily installed on Mac OS X. In the meantime Gnuplot 4.4.0 was released and although the wxWidgets terminal still doesn’t work on Mac OS X, there are the new cairo based terminals which provide png and pdf output. These terminals replace the gd terminals (libgd is not easily installed due it’s dependencies) and the old pdf terminal (which depends on the not-very-free pdflib). Since gif and jpeg (libgd terminal) shouldn’t be used for plots anyways, this is no loss. Since these formats are the ones which I need mainly, I show in this post how we could compile and install Gnuplot with little effort, providing X11, png and pdf terminal (and others which are compiled in anyway). Continue reading Install Gnuplot 4.4.0 on Mac OS X

Install Gnuplot 4.4.0 on Ubuntu Linux

The most frequented blog entries here are about installing Gnuplot on Ubuntu Linux or Mac OS X. These entries are still valid for the newer Ubuntu versions. But Gnuplot newest version 4.4.0 was already released, and in this release there are cairo based pdf and png terminals provided. So you don’t need the pdflib anymore. Below you’ll find updated instructions to compile and install Gnuplot 4.4.0 with wxt and pdfcairo terminal. These instructions were tested on Ubuntu 8.04 (Hardy Heron) and Ubuntu 9.10 (Karmic Koala) and should also work on 8.10 (Intrepid Ibex) and 9.04 (Jaunty Jackalop). Continue reading Install Gnuplot 4.4.0 on Ubuntu Linux

Install Gnuplot on Mac OS X

I provide another instructions to install Gnuplot 4.4.0 compiling it yourself on Mac OS X.

There are some possibilities to install Gnuplot on Mac OS X, none of them is “official”, since the Gnuplot project doesn’t provide binaries for Mac OS X. It’s actually quite easy to configure and compile Gnuplot (i.e. ./configure; make; make install), but some terminals are not built due to missing dependencies and this makes Gnuplot less powerful.

Continue reading Install Gnuplot on Mac OS X

MinGW (3.4.5) binaries of GNU Scientific Library 1.12 for use with MinGW and Visual C++

“The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite”.

Binaries of the GSL 1.11 were already provided in an earlier post including instructions on how the package was assembled. Here, the binaries for GSL 1.12 are provided.

Continue reading MinGW (3.4.5) binaries of GNU Scientific Library 1.12 for use with MinGW and Visual C++

MinGW (3.4.5) binaries of GNU Scientific Library 1.11 for use with MinGW and Visual C

The binaries for GSL 1.12 are provided in this post: MinGW (3.4.5) binaries of GNU Scientific Library 1.12 for use with MinGW and Visual C++

“The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite”.

GSL is quite Unix centric but one might want to use the library at least with MinGW on Windows. I didn’t find any MinGW binaries of GSL apart from the one provided by the Ascend package or the binaries from GNUWin32 (which is only at version 1.8), but I don’t like graphical installers for libraries and I needed the static library. Therefore I compiled my own library with MSYS (I updated MSYS according to this link) and provide here the tarred binary package, which can also be used with the MinGW compiler without MSYS and with Visual C (import libraries for the shared library are provided).

Continue reading MinGW (3.4.5) binaries of GNU Scientific Library 1.11 for use with MinGW and Visual C

MinGW binaries of NetCDF 3.6.2

netCDF (network Common Data Form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data”. On its homepage you’ll find a lot of precompiled libraries for Unix derivates but only a binary of netCDF 3.6.1 compiled with Visual C++. It’s possible to use this binary in MinGW also, but I prefer to use libraries compiled with the same compiler toolkit I’m working with. Continue reading MinGW binaries of NetCDF 3.6.2

Create a movie file from single image files (png, jpegs)

In research sometimes you want to make a movie from single images, like plots from experimental data or from calculation to visualize changes or so on. In order to achieve this you can use ffmpeg. First you have to create the images and save them, where the images need to have a continuous number in the filename, e.g. img0001.png, img0002.png, …, …img5467.png. Take care that there is no image missing and that you have enough zeroes in front of the image number, so that the files are in the correct order. Continue reading Create a movie file from single image files (png, jpegs)

Install gnuplot on Ubuntu

I once again updated these instructions for Gnuplot 4.4.0 RC1 and newer Ubuntu versions. Find these instructions in this post.

There is an updated Howto for Ubuntu Gutsy Gibbon available.

Though there is gnuplot available in the Ubuntu/Debian repositories, there are reasons to compile gnuplot – first and most important gnu readline support! I don’t know why Debian maintainers don’t compile the GNU readline support into GNUplot – it’s some license issues – but it’s like that and this makes gnuplot practically unusable. Second having the pdf and wxWidgets terminal is not that bad at all 🙂

So here are the instructions: Continue reading Install gnuplot on Ubuntu

Using \subref in the caption of a figure (LaTeX)

I use the subfig package and when I compiled my thesis in Linux I encountered a problem, when I used the \subref command in the caption of a figure. The compilation was stopped with the error message “Argument of \@tempf has an extra }.”

Scanning the internet I found this forum entry in German where it was proposed to add the command “\protect” before “\subref{fig:1}, which actually did the trick for me. I didn’t have this problem though with MikTeX.