4.2.2 CONV_P2A and CONV_A2P
Next: 4.2.3 CONV_A2H and CONV_H2A
Up: 4.2 Routines to Convert
Previous: 4.2.1 Definition of the
When converting between pixel value and angle the following steps are
taken.
- Determine the pixel address for the center of the sun. SXT_CEN
is used to derive this value. It will read the ATT database by default,
but can use the commanded value if the /CMD option is used on the
call to CONV_P2A.
- Determine the roll. SXT_CEN returns this value too.
- Perform the simple math to convert from absolute pixels to an
angle relative to the sun center.
Figure: Corrections Performed by CONV_P2A
Some sample calls are:
IDL> ang = conv_p2a(pix, date)
IDL> ang = conv_p2a(pix, date, /cmd)
IDL> pix = conv_a2p(ang, date, /cmd)
The date is required in order to determine the location of the sun on the CCD and
the roll angle. The S/C roll angle and S/C pointing is taken into consideration, but
the solar B-angle is not taken into account.
ydac@mssly1.mssl.ucl.ac.uk