Table of Contents

DTC (Dynspec Toolkit Content), Prerequisites, Install and Use on CEP

DTC codes and dependencies

Format of DTC

The DTC package is based on C++ codes (one for each functionality) interfaced with python scripts. Exception for the «Visualization», it is a python graphical interface coded in Tkinter.

Prerequisites

The two main prerequisites are the (LOFAR-specific) DAL and hdf5 libraries. In addition, you'll need a few standard packages, as detailed in the following.


How to install

The DTC package is located on the LUS ASTRON svn server. It requires an account to checkout. Contact for a svn account: loose@astron.nl (or grit@astron.nl).

Install Prerequisites

To install Prerequisites, follow links provided above in the Prerequisites section. Be sure that DAL, hdf5 libraies and h5py are well installed. To process the installation, cmake is also required.

Installation

Checkout form the LUS DTC package:

svn co  http://usg.lofar.org/svn/code/trunk/src/Dynspec-Toolkit dynspec 

then go to dynspec directory:

cd dynspec

Create a build directory:

mkdir build

go to build directory:

cd build

Run Cmake:

cmake -DDAL_ROOT_DIR=/PATH/to/DAL -DHDF5_ROOT_DIR=/PATH/to/HDF5 -DCMAKE_INSTALL_PREFIX=/Where/You/Want/to/Install   ..

N.B:

Then make:

make

Then install

make install

PS: Without the CMAKE_INSTALL_PREFIX, it will install by default into /usr/local. If you select another directory, add it to the search path (for example by editing .bashrc):

export PATH=/Where/You/Want/to/Install/bin:$PATH
export PYTHONPATH=/Where/You/Want/to/Install/lib/python2.6/site-packages/:$PYTHONPATH

e.g.

export PYTHONPATH=~/usr/local/dynspec/lib/python2.7/site-packages/:$PYTHONPATH

:!:WARNING: Currently, DTC provides C++ exectuables and python scripts, which are all installed in the same directory. Their names differ, but are rather similar (for example, the python scripts do not have a .py extension). Be careful to use the python script and not the C++ executable.

Warning before using DTC: size of files

:!: Users must be aware about the file size. Usually, Beam formed observation are really voluminous (could be several TB). DTC converts Beam formed data to Dynspec data. Users can have an idea of the size of a complete conversion by summing the size of all file of a given SAP. Remember, for example on CEP each node has 16TB of data storage, but the real limit is the physical limit of one disk, so 2 TB (and certainly less, because the “real” disk is certainly not empty !!). So be careful when you do a complete conversion of a large observation. In practice, a complete conversion must be done ONLY for small dataset. In addition, the Visualization tool can visualize (without swapping) only files whose size is almost equal to its RAM memory. So, it is really recommended to rebin your data, except if you want a Dynspec original copy, but in this last case, dataset (for one SAP) must be smaller than 1TB. Last remark, if s user has a large observation with several SAP, it usually is more ingenious to process SAP by SAP, to avoid to fill up all the storage space in one run (and with one single file).

You may want to test DTC now

Return to main page, where you will find tutorials: dynspec