Create derived products from the processed frames _DERIVED_PRODUCTS_
headers are updated with the details of the master calibration frames and correction steps used,
the saturation and trimmed section are updated with the values used in the pipeline processing,
A clipped mean, median and sigma are calculated and added to the header,
the QC modules is run to produce the four QC flags in the headers,
incorrect values of the TAGID and/or PROPID are flagged and corrected and the PROPID is checked against the lists of known proposals,
access rights and state of the data are set,
a 512x512 PNG thumbnail of the processed image is created,
the frame is converted to FITS format
the pytimecorrect.py code is called to compute per-star barycentric time correction and airmass and updates the header of the BCD image and source catalog,
if a final destination is defined by the enviroment variable FINAL_DATA_OUT, the derived products are moved there.
This primitive is suitable for imaging cameras.
Processing only occurs for object frames.
Various incorrect/invalid values of the PROPID and TAGID are corrected and overwritten.
Data is normally set to private with a publication date of 1 year from the frames’ date. Data with a PROPID beginning with "ENG" or Engineering is set to private indefinitely. EPO with a PROPID or TAGID beginning with LCOEPOFTPEPOHAWEPO is set to public immediate.