FrameFrame - Coordinate system description

Description:
This class is used to represent coordinate systems. It does this in rather the same way that a frame around a graph describes the coordinate space in which data are plotted. Consequently, a Frame has a TitleTitle (string) attribute, which describes the coordinate space, and contains axes which in turn hold information such as Label and Units strings which are used for labelling (e.g.) graphical output. In general, however, the number of axes is not restricted to two.

Functions are available for converting Frame coordinate values into a form suitable for display, and also for calculating distances and offsets between positions within the Frame.

Frames may also contain knowledge of how to transform to and from related coordinate systems.

Constructor Function:
astFrameastFrame
Notes:
  • When used as a MappingMapping, a Frame implements a unit (null) transformation in both the forward and inverse directions (equivalent to a UnitMapUnitMap). The NinNin and NoutNout attribute values are both equal to the number of Frame axes.
Inheritance
The Frame class inherits from the Mapping class.
Attributes
In addition to those attributes common to all Mappings, every Frame also has the following attributes (if the Frame has only one axis, the axis specifier can be omited from the following attribute names):

  • AlignSystemAlignSystem: Coordinate system used to align Frames

  • Bottom(axis)Bottomaxis: Lowest axis value to display

  • Digits/Digits(axis)DigitsDigitsaxis: Number of digits of precision

  • Direction(axis)Directionaxis: Display axis in conventional direction?

  • DomainDomain: Coordinate system domain

  • Dut1Dut1: Difference between the UT1 and UTC timescale

  • EpochEpoch: Epoch of observation

  • Format(axis)Formataxis: Format specification for axis values

  • Label(axis)Labelaxis: AxisAxis label

  • MatchEndMatchEnd: Match trailing axes?

  • MaxAxesMaxAxes: Maximum number of Frame axes to match

  • MinAxesMinAxes: Minimum number of Frame axes to match

  • NaxesNaxes: Number of Frame axes

  • NormUnit(axis)NormUnitaxis: Normalised axis physical units

  • ObsAltObsAlt: Geodetic altitude of observer

  • ObsLatObsLat: Geodetic latitude of observer

  • ObsLonObsLon: Geodetic longitude of observer

  • PermutePermute: Permute axis order?

  • PreserveAxesPreserveAxes: Preserve axes?

  • Symbol(axis)Symbolaxis: Axis symbol

  • SystemSystem: Coordinate system used to describe the domain

  • TitleTitle: Frame title

  • Top(axis)Topaxis: Highest axis value to display

  • Unit(axis)Unitaxis: Axis physical units
Functions
In addition to those functions applicable to all Mappings, the following functions may also be applied to all Frames:

  • astAngleastAngle: Calculate the angle subtended by two points at a third point

  • astAxAngleastAxAngle: Find the angle from an axis, to a line through two points

  • astAxDistanceastAxDistance: Calculate the distance between two axis values

  • astAxOffsetastAxOffset: Calculate an offset along an axis

  • astConvertastConvert: Determine how to convert between two coordinate systems

  • astDistanceastDistance: Calculate the distance between two points in a Frame

  • astFindFrameastFindFrame: Find a coordinate system with specified characteristics

  • astFormatastFormat: Format a coordinate value for a Frame axis

  • astGetActiveUnitastGetActiveUnit: Determines how the Unit attribute will be used

  • astIntersectastIntersect: Find the intersection between two geodesic curves

  • astMatchAxesastMatchAxes: Find any corresponding axes in two Frames

  • astNormastNorm: Normalise a set of Frame coordinates

  • astOffsetastOffset: Calculate an offset along a geodesic curve

  • astOffset2astOffset2: Calculate an offset along a geodesic curve in a 2D Frame

  • astPermAxesastPermAxes: Permute the order of a Frame's axes

  • astPickAxesastPickAxes: Create a new Frame by picking axes from an existing one

  • astResolveastResolve: Resolve a vector into two orthogonal components

  • astSetActiveUnitastSetActiveUnit: Specify how the Unit attribute should be used

  • astUnformatastUnformat: Read a formatted coordinate value for a Frame axis