23.04.2015 Views

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

E.3. USING FITS IN CIA – NEW PROBLEMS 335<br />

my header = fits header (<br />

Nx,<br />

NAXIS1<br />

Ny,<br />

NAXIS2<br />

RefX,<br />

CRPIX1<br />

RefY,<br />

CRPIX2<br />

RA,<br />

CRVAL1<br />

Dec,<br />

CRVAL2<br />

Angle,<br />

CROTA2<br />

ResolX,<br />

CDELT1<br />

ResolY,<br />

CDELT2<br />

equinox = my equinox<br />

cd = cd)<br />

Some explanations are required for those unfamiliar with FITS. To fully grasp them, please<br />

consult also Figure E.5). NAXISn are the number of pixels on the 2 axes. Axis1 is the horizontal<br />

rightward axis, and Axis2 is the vertical upward axis. In order to perform some astrometry, one<br />

need to know the coordinates (α, δ) of a reference pixel in the image, the plate scale and an<br />

orientation angle. CRPIXn are the pixel coordinates of that reference pixel (usually the central<br />

one), while CRVALn are its (α, δ) coordinates in degrees. CROTA2 it the position angle of<br />

the celestial North axis with respect to the Axis 2 counted positively eastward, i.e. it<br />

is different from the definitions of angles used in CIA where the North axis was the reference.<br />

Figure E.5 clearly shows that difference (it is the angle called θ). An incorrect value in CROTA2<br />

is the first error possibility when you find that fits header ‘does not work’. CDELTn are the<br />

plate scales on both axes. In the FITS header they will appear in degrees per pixel which are<br />

the units you must give to fits header. Getting the units wrong is a second source of error<br />

when the routine ‘does not work’.<br />

The CDELT parameters must be given with the correct signs. These are:<br />

LW<br />

SW<br />

CDELT1 > 0 CDELT1 < 0<br />

CDELT2 < 0 CDELT2 < 0<br />

The reason that CDELT2 is negative is that pixel (0, 0) is defined to be at the top of an<br />

<strong><strong>ISO</strong>CAM</strong> image. This is of course an arbitrary decision but to reverse it all the signs must be<br />

changed.<br />

Do not forget to specify the equinox keyword. IDL works by default in B1950.0 while <strong>ISO</strong><br />

only uses J2000.0. . .<br />

Optionally you can pass in the CD matrix if you already know it. It is defined as:<br />

cos(crota2)<br />

sin(crota2)<br />

−sin(crota2)<br />

cos(crota2)<br />

The easiest way to get the CROTA2/CDELT/CD parameters is to ask the roll to crota2<br />

routine to give you them. Its calling sequence is:<br />

crota2 = roll_to_crota2(roll [,channel, pfov, cdelt, cd])<br />

pfov is the pixel-field-of-view. For example,<br />

CIA> crota2 = roll_to_crota2 (scd_get(’roll’,scd), ’lw’, [3,3], cdelt, cd])

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

Saved successfully!

Ooh no, something went wrong!