Writes CADC-style provenance to a FITS file specified by an environment parameter CVG_SCADC
The names follow CADC convention as follows. For the immediate parents:
PRVCNT = _INTEGER / Number of parents PRV1 = _CHAR / Name of the first parent PRV2 = _CHAR / Name of the second parent : : : : : : PRVn = _CHAR / Name of the PRVCNTth parent
for the root provenance: OBSCNT = _INTEGER / Number of root-ancestor headers OBS1 = _CHAR / First observation identifier : : : : : : OBSn = _CHAR / OBSCNTth observation identifier
and the output file name: FILEID = _CHAR / Filename without extension
The above headers are prefaced by a blank header and a title "
Provenance:"
comment.
The PRODUCT keyword’
s value is modified for FITS extensions. It has ’
_extname’
appended where extname
is the lowercase name of the standard EXTNAME keyword.
Ancestors that have been flagged as "
hidden"
are ignored.
A warning is issued if the OBSIDSS component cannot be found for a root ancestor. The value of OBSCNT gives the number of ancestors with an OBSIDSS value.