SCULIB_MJD_TO_DATEOBS

Convert a modified julian date to the correct FITS DATE-OBS format

Description:

Given a modified Julian date generate a correctly formatted FITS DATE-OBS string.

Invocation

CALL SCULIB_MJD_TO_DATEOBS ( MJD, DATE_OBS, STATUS )

Arguments

MJD = DOUBLE PRECISION (Given)
Modified Julian date (Defined as JD - 2400000.5)
DATE_OBS = CHARACTER () (Returned)
FITS DATE-OBS string. Should have at least 24 characters for YYYY-MM-DDThh:mm:ss.sssZ format
STATUS = INTEGER (Given & Returned)
Global Status

Notes:

The format used for the DATE-OBS keyword depends on the value of the keyword. For DATE-OBS < 1999.0, use the old "dd/mm/yy" format. Otherwise, use the new "ccyy-mm-ddThh:mm:ss[.ssss]Z" format.

Copyright

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