17.12.2012 Views

MOPEX User's Guide - IRSA

MOPEX User's Guide - IRSA

MOPEX User's Guide - IRSA

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.

Chapter 9. Running <strong>MOPEX</strong> on the Command Line<br />

9.1 Setting up <strong>MOPEX</strong><br />

<strong>MOPEX</strong> User’s <strong>Guide</strong><br />

<strong>MOPEX</strong> can be downloaded from the website. We assume that you have downloaded the<br />

installation file and followed the installation instructions. The following steps must then be<br />

followed to set up <strong>MOPEX</strong> for the command line:<br />

• Edit the file mopex-script-env.csh (found in the <strong>MOPEX</strong> installation directory) to set the<br />

installation path <strong>MOPEX</strong>_INSTALLATION to the current directory (pwd) e.g. if<br />

<strong>MOPEX</strong> is in /home/joe/mopex, then you should set the following in mopex-scriptenv.csh:<br />

setenv <strong>MOPEX</strong>_INSTALLATION /home/joe/mopex.<br />

• Running cshell (not bash), source mopex-script-env.csh:<br />

unix% source mopex-script-env.csh<br />

• <strong>MOPEX</strong> can now be run from the command line using the syntax described at the bottom<br />

of this section.<br />

9.2 Setting up the <strong>MOPEX</strong> directory structure<br />

Once <strong>MOPEX</strong> has been set up for the command line, you need to create the expected directory<br />

structure. We will call the directory containing your data , the directory containing the<br />

<strong>MOPEX</strong> software , and the directory from which you are planning to run <strong>MOPEX</strong><br />

. Your can be , but doesn’t have to be.<br />

<strong>MOPEX</strong> expects 4 basic input types:<br />

1. your input FITS images (e.g. Spitzer BCDs);<br />

2. ASCII text files listing the input images;<br />

3. a file listing the parameters you want to use to reduce your data (the "namelist");<br />

4. any required calibration files (e.g. pmasks, sample PRFs etc).<br />

Running <strong>MOPEX</strong> on the Command Line 222 Setting up <strong>MOPEX</strong>

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

Saved successfully!

Ooh no, something went wrong!