Unit(axis)

Physical units for formatted axis values

Description:

This attribute contains a textual representation of the physical units used to represent formatted coordinate values on a particular axis of a Frame. The astSetActiveUnit function controls how the Unit values are used.
Type:
String.

Applicability

Frame
The default supplied by the Frame class is an empty string.
SkyFrame
The SkyFrame class re-defines the default Unit value (e.g. to " hh:mm:ss.sss" ) to describe the character string returned by the astFormat function when formatting coordinate values.
SpecFrame
The SpecFrame class re-defines the default Unit value so that it is appropriate for the current System value. See the System attribute for details. An error will be reported if an attempt is made to use an inappropriate Unit.
TimeFrame
The TimeFrame class re-defines the default Unit value so that it is appropriate for the current System value. See the System attribute for details. An error will be reported if an attempt is made to use an inappropriate Unit (e.g. " km" ).
FrameSet
The Unit attribute of a FrameSet axis is the same as that of its current Frame (as specified by the Current attribute).

Notes: