SCULIB_RAD2STRING

Translate an angle or time in radians to a nicely formatted string

Description:

Converts an angle or time in radians to a string that can be used for display. The sexagesimal format is colon separated. For time output, the output is format SHH:MM:SS.NDP. For angle output, the format used is SDD:MM:SS.NDP. Note that the sign is used for the first character but this can be either blank or a ’-’.

Invocation

CALL SCULIB_RAD2STRING( ANGLE, NDP, ISTIME, RESLT, STATUS )

Arguments

ANGLE = DOUBLE PRECISION (Given)
Angle to be translated (radians)
NDP = INTEGER (Given)
Number of decimal places to use for the seconds Can not be greater than 6.
ISTIME = LOGICAL (Given)
If true the angle will be assumed to be a time and will be converted to HH:MM:SS.NDP format. If false it will be assumed to be an angle and converted to SDDD:MM:SS.NDP.
RESLT = CHARACTER (Returned)
String containing the translated angle. Colon separated. Should be at least 11+NDP characters long.
STATUS = INTEGER (Given & Returned)
Global Status

Notes:

Essentially a wrapper around SLA_DR2AF and SLA_DR2TF

Copyright

Copyright (C) 2000 Particle Physics and Astronomy Research Council. All Rights Reserved.