17.12.2012 Views

MOPEX User's Guide - IRSA

MOPEX User's Guide - IRSA

MOPEX User's Guide - IRSA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Figure 8.1: An example of tiling a FIF. Suppose NAXIS1 = 4450 and NAXIS2 = 1024. The<br />

suggested sizes Tile Max X = Tile Max Y = 500. In this case there are 2 tiles in the ydirections<br />

of the same size Tile Y = 512 and 9 tiles in the x-direction, 8 of the size Tile X =<br />

494 and the last tile of the size Last Tile X = 498.<br />

If the FIF dimensions are greater than Tile Max X or Tile Max Y, then the co-added image is tiled.<br />

Given the dimensions of the FIF (NAXIS1 and NAXIS2) the program finds the number of the<br />

tiles, their sizes and relative positions (offsets) with respect to the FIF. The simple algorithm<br />

below assures that all the tiles are of almost the same size regardless of what the FIF size is (see<br />

Figure 8.1).<br />

N_X = NAXIS1 / (Tile Max X);<br />

If (NAXIS1 % Tile Max X > Tile Max X/2) N_X = N_X +1;<br />

Tile X = NAXIS1 / N_X;<br />

Last Tile X = Tile X + (NAXIS1%N_X).<br />

The % (modulo) operator yields the remainder from the division of the first argument by the<br />

second. The calculations in the y-direction are identical. The tile sizes and offsets from the origin<br />

of the FIF along with their names are written in output IPAC table coadd_tiles.tbl.<br />

Basic Concepts in <strong>MOPEX</strong> 180<br />

Tiling

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

Saved successfully!

Ooh no, something went wrong!