# 7.8 Specifying Orientation on the Sky

Determining the orientation of an image requires knowledge of the telescope roll and the angle of the aperture relative to the HST coordinate frame. A target may need to be oriented in a preferred direction on a detector, particularly when spectroscopy is to be performed.

To specify an ORIENT in a Phase II, use the ORIENT selection in APT. Keep in mind that this parameter is just the Position Angle (PA) of the HST U3 axis, which is the inverse of V3, as seen Figure 3.1 and Figure 7.9 in this Handbook and the Phase II Proposal InstructionsAPT provides a convenient interactive display of the aperture and orientations in your field. The ORIENT parameter is related to the following discussion of ACS geometry.

All HST aperture positions and orientations are defined within an orthogonal Euler angle coordinate system that is labeled V1, V2, and V3, in which V1 is nominally along the telescope roll axis, which is the same as the optical axis. The location of all apertures are therefore defined in the (V2, V3) plane. For more information about HST instrument aperture locations and axes in the HST FOV, please visit the Observatory Support webpage section on apertures.

The V3 position angle (PA_V3 in Figure 7.8) is defined as the angle of the projection of the V3 axis on the sky, measured from North to East with the aperture denoting the origin. This is almost identical to the telescope roll angle. There is a small difference between roll angles measured at the V1 axis and those measured at the aperture, as the (V2, V3) system is spherical (see ACS TIR 2014-021 for more detailed explanation). Due to the fact that ACS is far from the optical axis, this 3-dimensional correction can amount to several tenths of a degree depending on the target declination. In the (V2, V3) coordinate system, as shown in Figure 7.8, aperture orientations are defined by the angles their x and y axes make with the V3 axis, ßx and ßy, measured in an anticlockwise direction (the value of ßx as illustrated in Figure 7.8 would be considered negative). Hence, the angles these axes make with North are found by adding the axis angles to the position angle. The figure accurately describes ORIENTAT and PA_APER. All of the orientations are taken from HST FOV.
The science image header supplies the value of ORIENTAT, the angle the detector axis makes with North, which is equal to p + ßy, where p is the angle from North relative to V3 and ßy is the angle of the y axis of the detector relative to V3. Another angle keyword supplied is PA_APER, which is the angle the aperture y axis makes with North. Both angles are defined at the aperture so using them does not involve the displacement difference. Normally, the aperture and detector y axes are parallel, and so PA_APER = ORIENTAT. Several STIS slit apertures were not aligned parallel to the detector axes, so this distinction was meaningful, but ACS has no slit apertures so this difference will probably not arise in almost all science cases. In any case, we recommend using PA_APER in Phase II's (see Section 7.8.1).

Beyond establishing the direction of the aperture axes, it will often be necessary to know the orientation of a feature, such as the plane of a galaxy, within an image. Conversely, we need to know what direction within an image corresponds to North. To this end we define a feature angle α within the aperture as measured on the science image, anti-clockwise from the y axis so that it is in the same sense as the previously defined angles. For an orthogonal set of aperture axes, the direction of this feature would be PA_APER + α, and the image direction of North would be the value of α which makes this angle zero, namely −PA_APER, still measured in an anti-clockwise direction from the y axis. The readout amplifiers (A,B,C,D) are indicated on the figure. The WFC data products from the calibration pipeline will be oriented so that WFC1 (chip 1, which uses amplifiers A and B) is on top. The HRC data products will also be oriented such that amps A and B are on top, but they will be inverted from WFC images with respect to the sky.
The x and y axes projected on the sky are not necessarily orthogonal. For all instruments prior to the ACS, the departure from orthogonality has been negligible, but for the ACS the angle between the axes is about 85°. Figure 7.9 realistically represents the alignment of the ACS apertures and shows that the apertures are not square on the (V2, V3) system or on the sky. The x and y axes indicated are those that will be used for the science images. The (V2, V3) coordinates can be calculated from the x y coordinates according to

 (1)
 (2)

where sx and sy are scales in arcseconds per pixel along the image x and y axes. V2 and V3 are the coordinates of the aperture origin, but they do not enter into the angle calculations as they are fixed in the system. Figure 7.9 shows that a rotation from x to y is in the opposite sense to a rotation from V2 to V3. This will be the arrangement for ACS apertures. This is significant in defining the sense of the rotation angles. For a direction specified by displacements Δx and Δy in the image, the angle α is arctan(Δx/Δy).

Because of the oblique coordinates, the angle αs on the sky will not be equal to α. To calculate the sky angle, it is convenient to define another set of orthogonal axes (xsys), similar to the (V2, V3) but rotated so that ys lies along y, and xs is approximately in the x direction. Let ω β− βx be the angle between the projected detector axes and let their origins be coincident, for simplicity. Then the transformation is:

 (3)
 (4)

By comparing differentials and defining αs as arctan(−Δxs/Δys) we find:

 (5)

The equation as written will place the angle in the proper quadrant if the Fortran atan2 function, the IDL atan function, or the Python atan2 function is used. To get the true angle East of North, for a feature seen at angle α in the image, calculate αs, and add to PA_APER.

The inverse relation is

 (6)

To find the value of α corresponding to North, we need the value of αs such that PA_APER αs = 0. This guarantees that the reference frame is correctly oriented. To do this, substitute −PA_APER for αs in the equation to get the angle α in the image that corresponds to North. The values of the pixel scales and axis angles for all instruments are maintained in the DrizzlePac Handbook.

For the ACS apertures, the values in Table 7.11 have been derived from results of operating the ACS in the Refractive Aberrated Simulator. These should not be considered as true calibrations but they indicate some aperture features, such as the non-orthogonality of the aperture axes, and the x and y scale differences for HRC and SBC.

Table 7.11: Plate scales and axis angles for the 3 ACS channels.

Aperture

sx

sy

βy

βx

βy−βx

WFC1

0.049313

0.048651

92.46

177.35

–84.89

WFC2

0.049895

0.050328

91.7

177.78

–86.08

HRC

0.028431

0.024843

–84.12

0.08

–84.2

SBC

0.033658

0.030009

–84.56

–0.05

–84.51

## 7.8.1 Determining Orientation for Phase II

A particular orientation is specified in an HST Phase II proposal using yet another coordinate system: (U2, U3). In this system, the U2 and U3 axes are opposite to V2 and V3, so, for example, U3 = V3. The angle ORIENT, used in a Phase II proposal to specify a particular HST orientation, is the position angle of U3 measured from North towards East. This means the direction of the V3 axis with respect to North is PA_APER  βy and so

 (7)

This orientation can be checked by using APT, specifying the orientation, and then viewing in Aladin.

1TIRs available upon request.