06.03.2014 Views

The DiFX Software Correlator at IRA R I IRA-INAF /

The DiFX Software Correlator at IRA R I IRA-INAF /

The DiFX Software Correlator at IRA R I IRA-INAF /

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.4.3 mpifxcorr.py<br />

mpifxcorr.py runs some sanity checks on the input files and output files,<br />

calcul<strong>at</strong>es the correct number of processes and launches the MPI job.<br />

5.5 Integr<strong>at</strong>ion of the various tools<br />

We then require some way to tie all these separ<strong>at</strong>e software tools together.<br />

We also want to give the user the ability to autom<strong>at</strong>e and customise the<br />

correl<strong>at</strong>ion process using a scripting language.<br />

5.5.1 correl<strong>at</strong>or_defaults.py and observ<strong>at</strong>ion.py<br />

<strong>The</strong> correl<strong>at</strong>or_defaults file contains default values for various parameters<br />

which are expected to remain the same across all correl<strong>at</strong>ions.<br />

observ<strong>at</strong>ion.py is placed in the correl<strong>at</strong>ion directory (i.e. the directory<br />

which contains all of the input and output files). It can be used to set<br />

values specific to the individual correl<strong>at</strong>ion.<br />

5.5.2 pydifx.py<br />

A simple python class pydifx has been written which provides a simple<br />

framework for scripting correl<strong>at</strong>ions in python. By writing a simple script<br />

it is simple to carry out the following oper<strong>at</strong>ions:<br />

• Run any of the tools above.<br />

• Edit the input files.<br />

In addition, all the normal python functions are present for renaming/moving<br />

files etc. aips can also be called (via ParselTongue [25])<br />

from the same script. This is particularly useful for debugging and<br />

benchmarking. An example script is given in appendix C.<br />

23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!