AST_SKYFRAME

Create a SkyFrame

Description:

This function creates a new SkyFrame and optionally initialises its attributes.

A SkyFrame is a specialised form of Frame which describes celestial longitude/latitude coordinate systems. The particular celestial coordinate system to be represented is specified by setting the SkyFrame s System attribute (currently, the default is ICRS) qualified, as necessary, by a mean Equinox value and/or an Epoch.

For each of the supported celestial coordinate systems, a SkyFrame can apply an optional shift of origin to create a coordinate system representing offsets within the celestial coordinate system from some specified point. This offset coordinate system can also be rotated to define new longitude and latitude axes. See attributes SkyRef, SkyRefIs and SkyRefP

All the coordinate values used by a SkyFrame are in radians. These may be formatted in more conventional ways for display by using AST_FORMAT.

Invocation

RESULT = AST_SKYFRAME( OPTIONS, STATUS )

Arguments

OPTIONS = CHARACTER ( ) (Given)
A character string containing an optional comma-separated list of attribute assignments to be used for initialising the new SkyFrame. The syntax used is identical to that for the AST_SET routine. If no initialisation is required, a blank value may be supplied.
STATUS = INTEGER (Given and Returned)
The global status.

Returned Value

AST_SKYFRAME = INTEGER
A pointer to the new SkyFrame.

Examples:

FRAME = AST_SKYFRAME( , STATUS )
Creates a SkyFrame to describe the default ICRS celestial coordinate system.
FRAME = AST_SKYFRAME( System = FK5, Equinox = J2005, Digits = 10 , STATUS )
Creates a SkyFrame to describe the FK5 celestial coordinate system, with a mean Equinox of J2005.0. Because especially accurate coordinates will be used, additional precision (10 digits) has been requested. This will be used when coordinate values are formatted for display.
FRAME = AST_SKYFRAME( System = FK4, Equinox = 1955-SEP-2 , STATUS )
Creates a SkyFrame to describe the old FK4 celestial coordinate system. A default Epoch value (B1950.0) is used, but the mean Equinox value is given explicitly as " 1955-SEP-2" .
FRAME = AST_SKYFRAME( System = GAPPT, Epoch = // DATE, STATUS )
Creates a SkyFrame to describe the Geocentric Apparent celestial coordinate system. The Epoch value, which specifies the date of observation, is obtained from a date/time string contained in the character variable DATE.

Notes: