Help for kittens

Help For Kittens

If you have a data file arranged in the following way

....... .......

1.234 4.332

3.114 67.562

....... .......

it is very easy to read in the data in IDL and either show the result on the screen or take a hardcopy. I have made a module that you can use. I believe it is easy to use, if not please contact me and tell me the problem.

How to get in contact with the module

1) Either you copy it from my directory

cp ~bundgard/idl/modules/ .

2) Or set into your path (in your .cshrc)

setenv IDL_PATH "/usr/local/idl:+~bundgard/idl/modules:+/usr/local/idl/lib:+/usr/local/idl/help"

How to use the program

First of all The data file must have the extension ".dat"

Now at the unix prompt write the following :


When inside IDL, write :

.r readdata

IDL should write the following message :

% Compiled module: READDATA

(If it does not then see below)
Now try to write "readdata" (Actually you need to give the program more information but this will tell you what you need to give it).
Now write forexample :


where the 'filename' is the file you want to see (without extension!!) and xmin,xmax,.... are what you think they are, just given apropriate values. 'Output' chooses whether it should be postscript or on the screen. Axe is normal ,log-normal... and so on.. plot. 'nr' is the file you want to save given that number. Yes its titles on the plot...

It is important that you remember the single quotation marks around filename, output, number and the x- and y- tiltes.

If it does not work

If you copied the file be sure that you are in the directory where you copied them to

Notice that if your file contains more than 10000 data-points you should change the konstant "n" to the appropriate number

CATS-TOP Back to the CATS homepage
This page is maintained by Jens Bundgaard